TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
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 ()
 
 getPropertyMappingConfiguration ()
 
 getDataType ()
 
 setDataType (string $dataType)
 
 getValidators ()
 
 addValidator (ValidatorInterface $validator)
 
 process ($value)
 
 getProcessingMessages ()
 

Protected Attributes

 $dataType
 
 $propertyMappingConfiguration
 
 $validator
 
 $processingMessages
 
 $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 33 of file ProcessingRule.php.

Constructor & Destructor Documentation

__construct ( )

Constructs this processing rule

Definition at line 97 of file ProcessingRule.php.

References GeneralUtility\makeInstance().

Member Function Documentation

addValidator ( ValidatorInterface  $validator)
Parameters
ValidatorInterface$validator
Returns
void

Definition at line 146 of file ProcessingRule.php.

getDataType ( )
Returns
string

Definition at line 116 of file ProcessingRule.php.

References ProcessingRule\$dataType.

getProcessingMessages ( )
Returns
Result

Definition at line 177 of file ProcessingRule.php.

References ProcessingRule\$processingMessages.

getPropertyMappingConfiguration ( )
Returns
PropertyMappingConfiguration

Definition at line 107 of file ProcessingRule.php.

References ProcessingRule\$propertyMappingConfiguration.

getValidators ( )

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

Returns
<ValidatorInterface>

Definition at line 136 of file ProcessingRule.php.

injectConjunctionValidator ( \TYPO3\CMS\Extbase\Validation\Validator\ConjunctionValidator  $validator)
Parameters
\TYPO3\CMS\Extbase\Validation\Validator\ConjunctionValidator$validator
Returns
void

Definition at line 78 of file ProcessingRule.php.

References ProcessingRule\$validator.

injectPropertyMapper ( \TYPO3\CMS\Extbase\Property\PropertyMapper  $propertyMapper)
Parameters
\TYPO3\CMS\Extbase\Property\PropertyMapper$propertyMapper
Returns
void

Definition at line 88 of file ProcessingRule.php.

References ProcessingRule\$propertyMapper.

injectPropertyMappingConfiguration ( \TYPO3\CMS\Extbase\Property\PropertyMappingConfiguration  $propertyMappingConfiguration)
Parameters
\TYPO3\CMS\Extbase\Property\PropertyMappingConfiguration$propertyMappingConfiguration
Returns
void

Definition at line 68 of file ProcessingRule.php.

References ProcessingRule\$propertyMappingConfiguration.

process (   $value)
Parameters
mixed$value
Returns
mixed

Definition at line 156 of file ProcessingRule.php.

References GeneralUtility\makeInstance().

setDataType ( string  $dataType)
Parameters
string$dataType

Definition at line 125 of file ProcessingRule.php.

References ProcessingRule\$dataType.

Member Data Documentation

$dataType
protected

Definition at line 41 of file ProcessingRule.php.

Referenced by ProcessingRule\getDataType(), and ProcessingRule\setDataType().

$processingMessages
protected

Definition at line 56 of file ProcessingRule.php.

Referenced by ProcessingRule\getProcessingMessages().

$propertyMapper
protected

Definition at line 61 of file ProcessingRule.php.

Referenced by ProcessingRule\injectPropertyMapper().

$propertyMappingConfiguration
protected
$validator
protected

Definition at line 51 of file ProcessingRule.php.

Referenced by ProcessingRule\injectConjunctionValidator().