ElementBasedValidator extends AbstractValidator
AbstractYes
Table of Contents
Properties
- $currentElement : array<string|int, mixed>
- $sessionToken : string
- $validationDto : ValidationDto
Methods
- __construct() : mixed
- validateFormElementPropertyValueByHmacData() : void
- Throws an exception if value from a form element property does not match its hmac hash or if there is no hmac hash available for the value.
- buildHmacDataPath() : string
- Builds the path in which the hmac value is expected based on the property path.
- getConfigurationService() : ConfigurationService
- getFormDefinitionValidationService() : FormDefinitionValidationService
Properties
$currentElement
protected
array<string|int, mixed>
$currentElement
$sessionToken
protected
string
$sessionToken
$validationDto
protected
ValidationDto
$validationDto
Methods
__construct()
public
__construct(array<string|int, mixed> $currentElement, string $sessionToken, ValidationDto $validationDto) : mixed
Parameters
- $currentElement : array<string|int, mixed>
- $sessionToken : string
- $validationDto : ValidationDto
validateFormElementPropertyValueByHmacData()
Throws an exception if value from a form element property does not match its hmac hash or if there is no hmac hash available for the value.
public
validateFormElementPropertyValueByHmacData(array<string|int, mixed> $currentElement, mixed $value, string $sessionToken, ValidationDto $dto) : void
Parameters
- $currentElement : array<string|int, mixed>
- $value : mixed
- $sessionToken : string
- $dto : ValidationDto
Tags
buildHmacDataPath()
Builds the path in which the hmac value is expected based on the property path.
protected
buildHmacDataPath(string $propertyPath) : string
Parameters
- $propertyPath : string
Return values
stringgetConfigurationService()
protected
getConfigurationService() : ConfigurationService
Return values
ConfigurationServicegetFormDefinitionValidationService()
protected
getFormDefinitionValidationService() : FormDefinitionValidationService