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

Public Member Functions

 injectPropertyMappingConfiguration (PropertyMappingConfiguration $propertyMappingConfiguration)
 
 injectConjunctionValidator (ConjunctionValidator $validator)
 
 injectPropertyMapper (PropertyMapper $propertyMapper)
 
 __construct ()
 
PropertyMappingConfiguration getPropertyMappingConfiguration ()
 
string getDataType ()
 
 setDataType (string $dataType)
 
SplObjectStorage getValidators ()
 
 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 35 of file ProcessingRule.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructs this processing rule

Definition at line 91 of file ProcessingRule.php.

Member Function Documentation

◆ addValidator()

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

Definition at line 139 of file ProcessingRule.php.

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

◆ getDataType()

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

Definition at line 110 of file ProcessingRule.php.

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

◆ getProcessingMessages()

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

Definition at line 182 of file ProcessingRule.php.

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

◆ getPropertyMappingConfiguration()

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

Definition at line 101 of file ProcessingRule.php.

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

◆ getValidators()

SplObjectStorage TYPO3\CMS\Form\Mvc\ProcessingRule::getValidators ( )

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

Returns
‪\SplObjectStorage

Definition at line 130 of file ProcessingRule.php.

◆ injectConjunctionValidator()

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

Definition at line 73 of file ProcessingRule.php.

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

◆ injectPropertyMapper()

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

Definition at line 82 of file ProcessingRule.php.

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

◆ injectPropertyMappingConfiguration()

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

Definition at line 64 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 161 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 151 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 119 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 42 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