AddHmacDataConverter extends AbstractConverter
Table of Contents
Properties
- $converterDto : ConverterDto
- $sessionToken : string
Methods
- __construct() : mixed
- __invoke() : void
- Add a new value "_orig_<propertyName>" as a sibling of the property key.
Properties
$converterDto
protected
ConverterDto
$converterDto
$sessionToken
protected
string
$sessionToken
Methods
__construct()
public
__construct(ConverterDto $converterDto[, string $sessionToken = '' ]) : mixed
Parameters
- $converterDto : ConverterDto
- $sessionToken : string = ''
__invoke()
Add a new value "_orig_<propertyName>" as a sibling of the property key.
public
__invoke(string $key, mixed $value) : void
"orig<propertyName>" is an array which contains the property value and a hmac hash for the property value. "orig<propertyName>" will be used to validate the form definition on saving.
Parameters
- $key : string
- $value : mixed