TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TypoScriptRepository Class Reference
Inheritance diagram for TypoScriptRepository:
SingletonInterface

Public Member Functions

 __construct ()
 
 getRegisteredElementTypes ()
 
 setRegisteredElementTypes (array $registeredElementTypes=array())
 
 getModelDefinedHtmlAttributes ($elementType= '')
 
 getDefaultFluidTemplate ($elementType, $partialType= 'partialPath')
 
 getModelConfigurationByScope ($elementType, $scope)
 
 getRegisteredClassName ($name, $scope)
 

Protected Member Functions

 resolveTypoScriptReferences (array $typoScript)
 

Protected Attributes

 $modelDefinitionTypoScript = array()
 
 $registeredElementTypes = array()
 
 $typoScriptParser
 

Detailed Description

Provide the TypoScript data-source

Definition at line 24 of file TypoScriptRepository.php.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

getDefaultFluidTemplate (   $elementType,
  $partialType = 'partialPath' 
)

Get the default fluid template for a element.

Parameters
string$elementType
string$partialType
Returns
string

Definition at line 122 of file TypoScriptRepository.php.

References TypoScriptRepository\getModelConfigurationByScope().

getModelConfigurationByScope (   $elementType,
  $scope 
)

Get the model definition from TypoScript for a specific scope.

Parameters
string$elementType
string$scope
Returns
mixed

Definition at line 138 of file TypoScriptRepository.php.

Referenced by TypoScriptRepository\getDefaultFluidTemplate(), and TypoScriptRepository\getModelDefinedHtmlAttributes().

getModelDefinedHtmlAttributes (   $elementType = '')

Get the html attributes defined by the model with their default values

Parameters
string$elementType
Returns
array

Definition at line 93 of file TypoScriptRepository.php.

References elseif, and TypoScriptRepository\getModelConfigurationByScope().

getRegisteredClassName (   $name,
  $scope 
)

Get a registered class name by a specific scope (validator or filter)

Parameters
string$name
string$scope(registeredValidators, registeredFilters)
Returns
mixed

Definition at line 154 of file TypoScriptRepository.php.

getRegisteredElementTypes ( )

Get all registered form elements

Returns
array

Definition at line 58 of file TypoScriptRepository.php.

References TypoScriptRepository\$registeredElementTypes.

resolveTypoScriptReferences ( array  $typoScript)
protected

Render a TypoScript and resolve all references (eg. " < plugin.tx_form...") recursively

Parameters
array$typoScript
Returns
array
Todo:
Extract to core then...

Definition at line 170 of file TypoScriptRepository.php.

References $GLOBALS, and elseif.

Referenced by TypoScriptRepository\__construct().

setRegisteredElementTypes ( array  $registeredElementTypes = array())

Set all registered form elements

Parameters
array$registeredElementTypes
Returns
void
Exceptions
\InvalidArgumentException

Definition at line 70 of file TypoScriptRepository.php.

References TypoScriptRepository\$registeredElementTypes.

Referenced by TypoScriptRepository\__construct().

Member Data Documentation

$modelDefinitionTypoScript = array()
protected

Definition at line 29 of file TypoScriptRepository.php.

$registeredElementTypes = array()
protected
$typoScriptParser
protected

Definition at line 39 of file TypoScriptRepository.php.