‪TYPO3CMS  9.5
TYPO3\CMS\Form\Mvc\ProcessingRule Class Reference

Public Member Functions

 injectPropertyMappingConfiguration (\TYPO3\CMS\Extbase\Property\PropertyMappingConfiguration $propertyMappingConfiguration)
 
 injectConjunctionValidator (\TYPO3\CMS\Extbase\Validation\Validator\ConjunctionValidator $validator)
 
 injectPropertyMapper (\TYPO3\CMS\Extbase\Property\PropertyMapper $propertyMapper)
 
 __construct ()
 
PropertyMappingConfiguration getPropertyMappingConfiguration ()
 
string getDataType ()
 
 setDataType (string $dataType)
 
SplObjectStorage< ValidatorInterfacegetValidators ()
 
 addValidator (ValidatorInterface $validator)
 
 removeValidator (ValidatorInterface $validator)
 
mixed process ($value)
 
Result getProcessingMessages ()
 

Protected Attributes

string $dataType
 
TYPO3 CMS Extbase Property PropertyMappingConfiguration $propertyMappingConfiguration
 
TYPO3 CMS Extbase Validation Validator ConjunctionValidator $validator
 
TYPO3 CMS Extbase Error Result $processingMessages
 
TYPO3 CMS Extbase Property PropertyMapper $propertyMapper
 

Detailed Description

A processing Rule contains information for property mapping and validation.

Scope: frontend This class is NOT meant to be sub classed by developers.

Definition at line 31 of file ProcessingRule.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\Mvc\ProcessingRule::__construct ( )

Constructs this processing rule

Definition at line 87 of file ProcessingRule.php.

Member Function Documentation

◆ addValidator()

TYPO3\CMS\Form\Mvc\ProcessingRule::addValidator ( ValidatorInterface  $validator)
Parameters
ValidatorInterface$validator

Definition at line 135 of file ProcessingRule.php.

References TYPO3\CMS\Form\Mvc\ProcessingRule\$validator.

◆ getDataType()

string TYPO3\CMS\Form\Mvc\ProcessingRule::getDataType ( )
Returns
‪string

Definition at line 106 of file ProcessingRule.php.

References TYPO3\CMS\Form\Mvc\ProcessingRule\$dataType.

◆ getProcessingMessages()

Result TYPO3\CMS\Form\Mvc\ProcessingRule::getProcessingMessages ( )
Returns
‪Result

Definition at line 178 of file ProcessingRule.php.

References TYPO3\CMS\Form\Mvc\ProcessingRule\$processingMessages.

◆ getPropertyMappingConfiguration()

PropertyMappingConfiguration TYPO3\CMS\Form\Mvc\ProcessingRule::getPropertyMappingConfiguration ( )
Returns
‪PropertyMappingConfiguration

Definition at line 97 of file ProcessingRule.php.

References TYPO3\CMS\Form\Mvc\ProcessingRule\$propertyMappingConfiguration.

◆ getValidators()

SplObjectStorage<ValidatorInterface> TYPO3\CMS\Form\Mvc\ProcessingRule::getValidators ( )

Returns the child validators of the ConjunctionValidator that is bound to this processing rule

Returns
‪\SplObjectStorage<ValidatorInterface>

Definition at line 126 of file ProcessingRule.php.

◆ injectConjunctionValidator()

TYPO3\CMS\Form\Mvc\ProcessingRule::injectConjunctionValidator ( \TYPO3\CMS\Extbase\Validation\Validator\ConjunctionValidator  $validator)
Parameters
\TYPO3\CMS\Extbase\Validation\Validator\ConjunctionValidator$validator

Definition at line 69 of file ProcessingRule.php.

References TYPO3\CMS\Form\Mvc\ProcessingRule\$validator.

◆ injectPropertyMapper()

TYPO3\CMS\Form\Mvc\ProcessingRule::injectPropertyMapper ( \TYPO3\CMS\Extbase\Property\PropertyMapper  $propertyMapper)
Parameters
\TYPO3\CMS\Extbase\Property\PropertyMapper$propertyMapper

Definition at line 78 of file ProcessingRule.php.

References TYPO3\CMS\Form\Mvc\ProcessingRule\$propertyMapper.

◆ injectPropertyMappingConfiguration()

TYPO3\CMS\Form\Mvc\ProcessingRule::injectPropertyMappingConfiguration ( \TYPO3\CMS\Extbase\Property\PropertyMappingConfiguration  $propertyMappingConfiguration)
Parameters
\TYPO3\CMS\Extbase\Property\PropertyMappingConfiguration$propertyMappingConfiguration

Definition at line 60 of file ProcessingRule.php.

References TYPO3\CMS\Form\Mvc\ProcessingRule\$propertyMappingConfiguration.

◆ process()

mixed TYPO3\CMS\Form\Mvc\ProcessingRule::process (   $value)
Parameters
mixed$value
Returns
‪mixed

Definition at line 157 of file ProcessingRule.php.

◆ removeValidator()

TYPO3\CMS\Form\Mvc\ProcessingRule::removeValidator ( ValidatorInterface  $validator)

Removes the specified validator.

Parameters
ValidatorInterface$validator‪The validator to remove
Exceptions

Definition at line 147 of file ProcessingRule.php.

References TYPO3\CMS\Form\Mvc\ProcessingRule\$validator.

Referenced by TYPO3\CMS\Form\Domain\Model\Renderable\AbstractRenderable\setOptions().

◆ setDataType()

TYPO3\CMS\Form\Mvc\ProcessingRule::setDataType ( string  $dataType)
Parameters
string$dataType

Definition at line 115 of file ProcessingRule.php.

References TYPO3\CMS\Form\Mvc\ProcessingRule\$dataType.

Member Data Documentation

◆ $dataType

string TYPO3\CMS\Form\Mvc\ProcessingRule::$dataType
protected

The target data type the data should be converted to

Definition at line 38 of file ProcessingRule.php.

Referenced by TYPO3\CMS\Form\Mvc\ProcessingRule\getDataType(), and TYPO3\CMS\Form\Mvc\ProcessingRule\setDataType().

◆ $processingMessages

TYPO3 CMS Extbase Error Result TYPO3\CMS\Form\Mvc\ProcessingRule::$processingMessages
protected

◆ $propertyMapper

TYPO3 CMS Extbase Property PropertyMapper TYPO3\CMS\Form\Mvc\ProcessingRule::$propertyMapper
protected

◆ $propertyMappingConfiguration

TYPO3 CMS Extbase Property PropertyMappingConfiguration TYPO3\CMS\Form\Mvc\ProcessingRule::$propertyMappingConfiguration
protected

◆ $validator

TYPO3 CMS Extbase Validation Validator ConjunctionValidator TYPO3\CMS\Form\Mvc\ProcessingRule::$validator
protected