‪TYPO3CMS  ‪main
TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\CreatablePropertyCollectionElementPropertiesValidator Class Reference
Inheritance diagram for TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\CreatablePropertyCollectionElementPropertiesValidator:
TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\CollectionBasedValidator TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\AbstractValidator TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\ValidatorInterface

Public Member Functions

 __invoke (string $key, $value)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\CollectionBasedValidator
 validatePropertyCollectionElementPropertyValueByHmacData (array $currentElement, $value, string $sessionToken, ValidationDto $dto)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\AbstractValidator
 __construct (array $currentElement, string $sessionToken, ValidationDto $validationDto)
 

Protected Member Functions

 validatePropertyCollectionElementPredefinedDefaultValue ( $value, ValidationDto $dto)
 
 validatePropertyCollectionPropertyValue ( $value, ValidationDto $dto)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\AbstractValidator
 buildHmacDataPath (string $propertyPath)
 
 getFormDefinitionValidationService ()
 
 getConfigurationService ()
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\AbstractValidator
array $currentElement
 
string $sessionToken
 
ValidationDto $validationDto
 

Detailed Description

Member Function Documentation

◆ __invoke()

TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\CreatablePropertyCollectionElementPropertiesValidator::__invoke ( string  $key,
  $value 
)

Checks if the property collection element property is defined within the form editor setup or if the property is defined within the "predefinedDefaults" in the form editor setup and the property value matches the predefined value or if there is a valid hmac hash for the value. If the property collection element property is defined within the form editor setup and there is no valid hmac hash for the value and is the form property collection element property configured to only allow a limited set of values, check the current (submitted) value against the allowed set of values (defined within the form setup).

Parameters
mixed$value

Implements TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\ValidatorInterface.

Definition at line 41 of file CreatablePropertyCollectionElementPropertiesValidator.php.

References TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\AbstractValidator\buildHmacDataPath(), TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\AbstractValidator\getConfigurationService(), TYPO3\CMS\Core\Utility\ArrayUtility\isValidPath(), TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\CreatablePropertyCollectionElementPropertiesValidator\validatePropertyCollectionElementPredefinedDefaultValue(), TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\CollectionBasedValidator\validatePropertyCollectionElementPropertyValueByHmacData(), and TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\CreatablePropertyCollectionElementPropertiesValidator\validatePropertyCollectionPropertyValue().

◆ validatePropertyCollectionElementPredefinedDefaultValue()

◆ validatePropertyCollectionPropertyValue()

TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\CreatablePropertyCollectionElementPropertiesValidator::validatePropertyCollectionPropertyValue (   $value,
ValidationDto  $dto 
)
protected