PHP Class Neos\Flow\Mvc\Controller\Argument

Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство 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 Neos\Flow\Property\PropertyMapper
$propertyMappingConfiguration MvcPropertyMappingConfiguration
$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

Méthodes publiques

Méthode 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 ( ) : MvcPropertyMappingConfiguration 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 ) : Argument Sets the default value of the argument
setRequired ( boolean $required ) : Argument Marks this argument to be required
setValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : Argument Sets a custom validator which is used supplementary to the base validation
setValue ( mixed $rawValue ) : Argument Sets the value of this argument.

Method Details

__construct() public méthode

Constructs this controller argument
public __construct ( string $name, string $dataType )
$name string Name of this argument
$dataType string The data type of this argument

getDataType() public méthode

Returns the data type of this argument's value
public getDataType ( ) : string
Résultat string The data type

getDefaultValue() public méthode

Returns the default value of this argument
public getDefaultValue ( ) : mixed
Résultat mixed The default value

getName() public méthode

Returns the name of this argument
public getName ( ) : string
Résultat string This argument's name

getPropertyMappingConfiguration() public méthode

Return the Property Mapping Configuration used for this argument; can be used by the initialize*action to modify the Property Mapping.
public getPropertyMappingConfiguration ( ) : MvcPropertyMappingConfiguration
Résultat MvcPropertyMappingConfiguration

getValidationResults() public méthode

public getValidationResults ( ) : array
Résultat array

getValidator() public méthode

Returns the set validator
public getValidator ( ) : Neos\Flow\Validation\Validator\ValidatorInterface
Résultat Neos\Flow\Validation\Validator\ValidatorInterface The set validator, NULL if none was set

getValue() public méthode

Returns the value of this argument. If the value is NULL, we use the defaultValue.
public getValue ( ) : object
Résultat object The value of this argument - if none was set, the default value is returned

isRequired() public méthode

Returns TRUE if this argument is required
public isRequired ( ) : boolean
Résultat boolean TRUE if this argument is required

isValid() public méthode

Deprecation: Will be removed for next major Flow version.
public isValid ( ) : boolean
Résultat boolean TRUE if the argument is valid, FALSE otherwise

setDefaultValue() public méthode

Sets the default value of the argument
public setDefaultValue ( mixed $defaultValue ) : Argument
$defaultValue mixed Default value
Résultat Argument $this

setRequired() public méthode

Marks this argument to be required
public setRequired ( boolean $required ) : Argument
$required boolean TRUE if this argument should be required
Résultat Argument $this

setValidator() public méthode

Sets a custom validator which is used supplementary to the base validation
public setValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : Argument
$validator Neos\Flow\Validation\Validator\ValidatorInterface The actual validator object
Résultat Argument Returns $this (used for fluent interface)

setValue() public méthode

Sets the value of this argument.
public setValue ( mixed $rawValue ) : Argument
$rawValue mixed The value of this argument
Résultat Argument $this

Property Details

$dataType protected_oe property

Data type of this argument's value
protected string $dataType
Résultat string

$defaultValue protected_oe property

Default value. Used if argument is optional.
protected mixed $defaultValue
Résultat mixed

$isRequired protected_oe property

TRUE if this argument is required
protected bool $isRequired
Résultat boolean

$name protected_oe property

Name of this argument
protected string $name
Résultat string

$propertyMapper protected_oe property

protected PropertyMapper,Neos\Flow\Property $propertyMapper
Résultat Neos\Flow\Property\PropertyMapper

$propertyMappingConfiguration protected_oe property

protected MvcPropertyMappingConfiguration,Neos\Flow\Mvc\Controller $propertyMappingConfiguration
Résultat MvcPropertyMappingConfiguration

$validationResults protected_oe property

The validation results. This can be asked if the argument has errors.
protected Result,Neos\Error\Messages $validationResults
Résultat Neos\Error\Messages\Result

$validator protected_oe property

A custom validator, used supplementary to the base validation
protected ValidatorInterface,Neos\Flow\Validation\Validator $validator
Résultat Neos\Flow\Validation\Validator\ValidatorInterface

$value protected_oe property

Actual value of this argument
protected object $value
Résultat object