Свойство | Тип | Описание | |
---|---|---|---|
$dataType | string | Data type of this argument's value | |
$defaultValue | mixed | Default value. Used if argument is optional. | |
$isRequired | boolean | TRUE if this argument is required | |
$name | string | Name of this argument | |
$propertyMapper | |||
$propertyMappingConfiguration | |||
$validationResults | Neos\Error\Messages\Result | The validation results. This can be asked if the argument has errors. | |
$validator | Neos\Flow\Validation\Validator\ValidatorInterface | A custom validator, used supplementary to the base validation | |
$value | object | Actual value of this argument |
Метод | Описание | |
---|---|---|
__construct ( string $name, string $dataType ) | Constructs this controller argument | |
getDataType ( ) : string | Returns the data type of this argument's value | |
getDefaultValue ( ) : mixed | Returns the default value of this argument | |
getName ( ) : string | Returns the name of this argument | |
getPropertyMappingConfiguration ( ) : |
Return the Property Mapping Configuration used for this argument; can be used by the initialize*action to modify the Property Mapping. | |
getValidationResults ( ) : array |
||
getValidator ( ) : Neos\Flow\Validation\Validator\ValidatorInterface | Returns the set validator | |
getValue ( ) : object | Returns the value of this argument. If the value is NULL, we use the defaultValue. | |
isRequired ( ) : boolean | Returns TRUE if this argument is required | |
isValid ( ) : boolean | ||
setDefaultValue ( mixed $defaultValue ) : |
Sets the default value of the argument | |
setRequired ( boolean $required ) : |
Marks this argument to be required | |
setValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : |
Sets a custom validator which is used supplementary to the base validation | |
setValue ( mixed $rawValue ) : |
Sets the value of this argument. |
public __construct ( string $name, string $dataType ) | ||
$name | string | Name of this argument |
$dataType | string | The data type of this argument |
public getDataType ( ) : string | ||
Результат | string | The data type |
public getDefaultValue ( ) : mixed | ||
Результат | mixed | The default value |
public getPropertyMappingConfiguration ( ) : |
||
Результат |
public getValidator ( ) : Neos\Flow\Validation\Validator\ValidatorInterface | ||
Результат | Neos\Flow\Validation\Validator\ValidatorInterface | The set validator, NULL if none was set |
public isRequired ( ) : boolean | ||
Результат | boolean | TRUE if this argument is required |
public setDefaultValue ( mixed $defaultValue ) : |
||
$defaultValue | mixed | Default value |
Результат | $this |
public setRequired ( boolean $required ) : |
||
$required | boolean | TRUE if this argument should be required |
Результат | $this |
public setValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : |
||
$validator | Neos\Flow\Validation\Validator\ValidatorInterface | The actual validator object |
Результат | Returns $this (used for fluent interface) |
protected string $dataType | ||
Результат | string |
protected mixed $defaultValue | ||
Результат | mixed |
protected bool $isRequired | ||
Результат | boolean |
protected PropertyMapper,Neos\Flow\Property $propertyMapper | ||
Результат |
protected MvcPropertyMappingConfiguration,Neos\Flow\Mvc\Controller $propertyMappingConfiguration | ||
Результат |
protected Result,Neos\Error\Messages $validationResults | ||
Результат | Neos\Error\Messages\Result |
protected ValidatorInterface,Neos\Flow\Validation\Validator $validator | ||
Результат | Neos\Flow\Validation\Validator\ValidatorInterface |