TYPO3
7.6
|
Public Member Functions | |
injectPropertyMapper (\TYPO3\CMS\Extbase\Property\PropertyMapper $propertyMapper) | |
injectPropertyMappingConfiguration (MvcPropertyMappingConfiguration $propertyMappingConfiguration) | |
__construct ($name, $dataType) | |
getName () | |
setShortName ($shortName) | |
getShortName () | |
getDataType () | |
setRequired ($required) | |
isRequired () | |
setDefaultValue ($defaultValue) | |
getDefaultValue () | |
setValidator (\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface $validator) | |
getValidator () | |
setValue ($rawValue) | |
getValue () | |
getPropertyMappingConfiguration () | |
isValid () | |
getValidationResults () | |
__toString () | |
Protected Attributes | |
$propertyMapper | |
$propertyMappingConfiguration | |
$name = '' | |
$shortName = null | |
$dataType = null | |
$isRequired = false | |
$value = null | |
$defaultValue = null | |
$validator = null | |
$validationResults = null | |
A controller argument
Definition at line 25 of file Argument.php.
__construct | ( | $name, | |
$dataType | |||
) |
Constructs this controller argument
string | $name | Name of this argument |
string | $dataType | The data type of this argument |
\InvalidArgumentException | if $name is not a string or empty |
Definition at line 117 of file Argument.php.
References Argument\$dataType, Argument\$name, and TypeHandlingUtility\normalizeType().
__toString | ( | ) |
Returns a string representation of this argument's value
Definition at line 336 of file Argument.php.
References Argument\$value.
getDataType | ( | ) |
Returns the data type of this argument's value
Definition at line 174 of file Argument.php.
References Argument\$dataType.
getDefaultValue | ( | ) |
Returns the default value of this argument
Definition at line 222 of file Argument.php.
References Argument\$defaultValue.
getName | ( | ) |
Returns the name of this argument
Definition at line 135 of file Argument.php.
References Argument\$name.
getPropertyMappingConfiguration | ( | ) |
Return the Property Mapping Configuration used for this argument; can be used by the initialize*action to modify the Property Mapping.
Definition at line 307 of file Argument.php.
References Argument\$propertyMappingConfiguration.
getShortName | ( | ) |
Returns the short name of this argument
Definition at line 163 of file Argument.php.
References Argument\$shortName.
getValidationResults | ( | ) |
Definition at line 325 of file Argument.php.
References Argument\$validationResults.
getValidator | ( | ) |
Returns the set validator
Definition at line 246 of file Argument.php.
References Argument\$validator.
getValue | ( | ) |
Returns the value of this argument
Definition at line 292 of file Argument.php.
References Argument\$defaultValue, and Argument\$value.
injectPropertyMapper | ( | \TYPO3\CMS\Extbase\Property\PropertyMapper | $propertyMapper | ) |
\TYPO3\CMS\Extbase\Property\PropertyMapper | $propertyMapper |
Definition at line 96 of file Argument.php.
References Argument\$propertyMapper.
injectPropertyMappingConfiguration | ( | MvcPropertyMappingConfiguration | $propertyMappingConfiguration | ) |
\TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfiguration | $propertyMappingConfiguration |
Definition at line 104 of file Argument.php.
References Argument\$propertyMappingConfiguration.
isRequired | ( | ) |
Returns TRUE if this argument is required
Definition at line 198 of file Argument.php.
References Argument\$isRequired.
Referenced by Argument\setRequired(), and Argument\setValue().
isValid | ( | ) |
Definition at line 316 of file Argument.php.
setDefaultValue | ( | $defaultValue | ) |
Sets the default value of the argument
mixed | $defaultValue | Default value |
Definition at line 210 of file Argument.php.
References Argument\$defaultValue.
setRequired | ( | $required | ) |
Marks this argument to be required
bool | $required | TRUE if this argument should be required |
Definition at line 186 of file Argument.php.
References Argument\isRequired().
setShortName | ( | $shortName | ) |
Sets the short name of this argument.
string | $shortName | A "short name" - a single character |
\InvalidArgumentException | if $shortName is not a character |
Definition at line 148 of file Argument.php.
References Argument\$shortName.
setValidator | ( | \TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface | $validator | ) |
Sets a custom validator which is used supplementary to the base validation
\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface | $validator | The actual validator object |
Definition at line 234 of file Argument.php.
References Argument\$validator.
setValue | ( | $rawValue | ) |
Sets the value of this argument.
mixed | $rawValue | The value of this argument |
\TYPO3\CMS\Extbase\Property\Exception |
Definition at line 259 of file Argument.php.
References Argument\isRequired().
|
protected |
Definition at line 56 of file Argument.php.
Referenced by Argument\__construct(), and Argument\getDataType().
|
protected |
Definition at line 77 of file Argument.php.
Referenced by Argument\getDefaultValue(), Argument\getValue(), and Argument\setDefaultValue().
|
protected |
Definition at line 63 of file Argument.php.
Referenced by Argument\isRequired().
|
protected |
Definition at line 42 of file Argument.php.
Referenced by Argument\__construct(), and Argument\getName().
|
protected |
Definition at line 30 of file Argument.php.
Referenced by Argument\injectPropertyMapper().
|
protected |
Definition at line 35 of file Argument.php.
Referenced by Argument\getPropertyMappingConfiguration(), and Argument\injectPropertyMappingConfiguration().
|
protected |
Definition at line 49 of file Argument.php.
Referenced by Argument\getShortName(), and Argument\setShortName().
|
protected |
Definition at line 91 of file Argument.php.
Referenced by Argument\getValidationResults().
|
protected |
Definition at line 84 of file Argument.php.
Referenced by Argument\getValidator(), and Argument\setValidator().
|
protected |
Definition at line 70 of file Argument.php.
Referenced by Argument\__toString(), and Argument\getValue().