TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository Class Reference
Inheritance diagram for TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

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

Protected Member Functions

 resolveTypoScriptReferences (array $typoScript)
 

Protected Attributes

 $modelDefinitionTypoScript = []
 
 $registeredElementTypes = []
 
 $typoScriptParser
 

Detailed Description

Provide the TypoScript data-source

Definition at line 24 of file TypoScriptRepository.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ getDefaultFluidTemplate()

TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository::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 TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository\getModelConfigurationByScope().

◆ getModelConfigurationByScope()

TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository::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 TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository\getDefaultFluidTemplate(), and TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository\getModelDefinedHtmlAttributes().

◆ getModelDefinedHtmlAttributes()

TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository::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 TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository\getModelConfigurationByScope().

◆ getRegisteredClassName()

TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository::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()

TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository::getRegisteredElementTypes ( )

Get all registered form elements

Returns
array

Definition at line 58 of file TypoScriptRepository.php.

References TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository\$registeredElementTypes.

◆ resolveTypoScriptReferences()

TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository::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.

Referenced by TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository\__construct().

◆ setRegisteredElementTypes()

TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository::setRegisteredElementTypes ( array  $registeredElementTypes = [])

Set all registered form elements

Parameters
array$registeredElementTypes
Returns
void
Exceptions

Definition at line 70 of file TypoScriptRepository.php.

References TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository\$registeredElementTypes.

Referenced by TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository\__construct().

Member Data Documentation

◆ $modelDefinitionTypoScript

TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository::$modelDefinitionTypoScript = []
protected

Definition at line 29 of file TypoScriptRepository.php.

◆ $registeredElementTypes

TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository::$registeredElementTypes = []
protected

◆ $typoScriptParser

TYPO3\CMS\Form\Domain\Repository\TypoScriptRepository::$typoScriptParser
protected

Definition at line 39 of file TypoScriptRepository.php.