TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
Arguments Class Reference
Inheritance diagram for Arguments:

Public Member Functions

 __construct (array $arguments)
 
 offsetExists ($key)
 
 offsetGet ($key)
 
 offsetSet ($key, $value)
 
 offsetUnset ($key)
 
 hasArgument ($argumentName)
 

Protected Attributes

 $arguments = array()
 

Detailed Description

Arguments list. Wraps an array, but only allows read-only methods on it. Is available inside every view helper as $this->arguments - and you use it as if it was an array. However, you can only read, and not write to it.

Definition at line 30 of file fluid/Classes/Core/ViewHelper/Arguments.php.

Constructor & Destructor Documentation

__construct ( array  $arguments)

Constructor.

Parameters
array$argumentsArray of arguments

Definition at line 43 of file fluid/Classes/Core/ViewHelper/Arguments.php.

References Arguments\$arguments.

Member Function Documentation

hasArgument (   $argumentName)

Checks if an argument with the specified name exists

Parameters
string$argumentNameName of the argument to check for
Returns
bool TRUE if such an argument exists, otherwise FALSE
See Also
offsetExists()

Definition at line 101 of file fluid/Classes/Core/ViewHelper/Arguments.php.

References Arguments\offsetExists().

offsetExists (   $key)

Checks if a given key exists in the array

Parameters
string$keyKey to check
Returns
bool true if exists

Definition at line 54 of file fluid/Classes/Core/ViewHelper/Arguments.php.

Referenced by Arguments\hasArgument().

offsetGet (   $key)

Returns the value to the given key.

Parameters
string$keyKey to get.
Returns
object associated value

Definition at line 65 of file fluid/Classes/Core/ViewHelper/Arguments.php.

offsetSet (   $key,
  $value 
)

Throw exception if you try to set a value.

Parameters
string$key
object$value

Definition at line 79 of file fluid/Classes/Core/ViewHelper/Arguments.php.

offsetUnset (   $key)

Throw exception if you try to unset a value.

Parameters
string$key

Definition at line 89 of file fluid/Classes/Core/ViewHelper/Arguments.php.

Member Data Documentation

$arguments = array()
protected

Definition at line 35 of file fluid/Classes/Core/ViewHelper/Arguments.php.

Referenced by Arguments\__construct().