Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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 | ||
return | string | The data type |
public getDefaultValue ( ) : mixed | ||
return | mixed | The default value |
public getPropertyMappingConfiguration ( ) : |
||
return |
public getValidator ( ) : Neos\Flow\Validation\Validator\ValidatorInterface | ||
return | Neos\Flow\Validation\Validator\ValidatorInterface | The set validator, NULL if none was set |
public isRequired ( ) : boolean | ||
return | boolean | TRUE if this argument is required |
public setDefaultValue ( mixed $defaultValue ) : |
||
$defaultValue | mixed | Default value |
return | $this |
public setRequired ( boolean $required ) : |
||
$required | boolean | TRUE if this argument should be required |
return | $this |
public setValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : |
||
$validator | Neos\Flow\Validation\Validator\ValidatorInterface | The actual validator object |
return | Returns $this (used for fluent interface) |
protected string $dataType | ||
return | string |
protected mixed $defaultValue | ||
return | mixed |
protected bool $isRequired | ||
return | boolean |
protected PropertyMapper,Neos\Flow\Property $propertyMapper | ||
return |
protected MvcPropertyMappingConfiguration,Neos\Flow\Mvc\Controller $propertyMappingConfiguration | ||
return |
protected Result,Neos\Error\Messages $validationResults | ||
return | Neos\Error\Messages\Result |
protected ValidatorInterface,Neos\Flow\Validation\Validator $validator | ||
return | Neos\Flow\Validation\Validator\ValidatorInterface |