![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct (array $helpers=array()) | |
set (HelperInterface $helper, $alias=null) | |
has ($name) | |
get ($name) | |
setCommand (Command $command=null) | |
getCommand () | |
getIterator () | |
Private Attributes | |
$helpers = array() | |
$command | |
HelperSet represents a set of helpers to be used with a command.
Definition at line 21 of file HelperSet.php.
__construct | ( | array | $helpers = array() | ) |
Constructor.
Helper[] | $helpers An array of helper. |
Definition at line 31 of file HelperSet.php.
References HelperSet\$helpers.
get | ( | $name | ) |
Gets a helper value.
string | $name | The helper name |
\InvalidArgumentException | if the helper is not defined |
Definition at line 75 of file HelperSet.php.
References elseif, and HelperSet\has().
getCommand | ( | ) |
Gets the command associated with this helper set.
Definition at line 107 of file HelperSet.php.
References HelperSet\$command.
getIterator | ( | ) |
Definition at line 112 of file HelperSet.php.
has | ( | $name | ) |
Returns true if the helper if defined.
string | $name | The helper name |
Definition at line 61 of file HelperSet.php.
Referenced by HelperSet\get().
set | ( | HelperInterface | $helper, |
$alias = null |
|||
) |
Sets a helper.
HelperInterface | $helper | The helper instance |
string | $alias | An alias |
Definition at line 44 of file HelperSet.php.
setCommand | ( | Command | $command = null | ) |
Sets the command associated with this helper set.
Definition at line 97 of file HelperSet.php.
References HelperSet\$command.
|
private |
Definition at line 24 of file HelperSet.php.
Referenced by HelperSet\getCommand(), and HelperSet\setCommand().
|
private |
Definition at line 23 of file HelperSet.php.
Referenced by HelperSet\__construct().