Argument

A controller argument

Table of Contents

Properties

$dataType  : string
$defaultValue  : mixed
Default value. Used if argument is optional.
$fileHandlingServiceConfiguration  : FileHandlingServiceConfiguration
$isRequired  : bool
$name  : string
$propertyMappingConfiguration  : MvcPropertyMappingConfiguration
$shortName  : string
$uploadedFiles  : array<string, UploadedFileInterface|array<int, UploadedFileInterface>>
Uploaded files for the argument
$validationResults  : Result
The validation results. This can be asked if the argument has errors.
$validator  : ValidatorInterface|null
A custom validator, used supplementary to the base validation
$value  : mixed

Methods

__construct()  : mixed
Constructs this controller argument
__toString()  : string
Returns a string representation of this argument's value
getDataType()  : string
getDefaultValue()  : mixed
getFileHandlingServiceConfiguration()  : FileHandlingServiceConfiguration
Return the FileHandlingServiceConfiguration used for this argument; can be used by the initialize*action to modify the file upload configuration for properties.
getName()  : string
getPropertyMappingConfiguration()  : MvcPropertyMappingConfiguration
Return the Property Mapping Configuration used for this argument; can be used by the initialize*action to modify the Property Mapping.
getShortName()  : string
getUploadedFiles()  : array<string|int, mixed>
getUploadedFilesForProperty()  : array<int, UploadedFileInterface>
Returns an array of possible UploadedFile objects for the given property
getValidationResults()  : Result
getValidator()  : ValidatorInterface|null
getValue()  : mixed
isRequired()  : bool
isValid()  : bool
setDefaultValue()  : Argument
setRequired()  : Argument
setShortName()  : Argument
setUploadedFiles()  : void
setValidator()  : Argument
Sets a custom validator which is used supplementary to the base validation
setValue()  : Argument
validate()  : Result

Properties

$defaultValue

Default value. Used if argument is optional.

protected mixed $defaultValue = null

$isRequired

protected bool $isRequired = false

$shortName

protected string $shortName = ''

$uploadedFiles

Uploaded files for the argument

protected array<string, UploadedFileInterface|array<int, UploadedFileInterface>> $uploadedFiles = []

$validationResults

The validation results. This can be asked if the argument has errors.

protected Result $validationResults

Methods

__construct()

Constructs this controller argument

public __construct(string $name, string $dataType) : mixed
Parameters
$name : string
$dataType : string
Tags
throws
InvalidArgumentException

if $name is empty string

__toString()

Returns a string representation of this argument's value

public __toString() : string
Return values
string

getDataType()

public getDataType() : string
Return values
string

getDefaultValue()

public getDefaultValue() : mixed

getName()

public getName() : string
Return values
string

getShortName()

public getShortName() : string
Return values
string

getUploadedFiles()

public getUploadedFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>

getUploadedFilesForProperty()

Returns an array of possible UploadedFile objects for the given property

public getUploadedFilesForProperty(string $propertyName) : array<int, UploadedFileInterface>
Parameters
$propertyName : string
Return values
array<int, UploadedFileInterface>

getValidationResults()

public getValidationResults() : Result
Internal

only to be used within Extbase, not part of TYPO3 Core API.

Return values
Result

isRequired()

public isRequired() : bool
Return values
bool

isValid()

public isValid() : bool
Return values
bool

TRUE if the argument is valid, FALSE otherwise

setDefaultValue()

public setDefaultValue(mixed $defaultValue) : Argument
Parameters
$defaultValue : mixed
Return values
Argument

setShortName()

public setShortName(string $shortName) : Argument
Parameters
$shortName : string
Tags
throws
InvalidArgumentException

if $shortName is not a character

Return values
Argument

setUploadedFiles()

public setUploadedFiles(array<string|int, mixed> $uploadedFiles) : void
Parameters
$uploadedFiles : array<string|int, mixed>

        
On this page

Search results