Interface CommandCollectionInterface.
addCommand(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $command, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $before) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandCollectionInterface
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface
The command to add.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface
The command before the passed command shall be inserted (optional).
addCommands(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface[]|array $commands, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $before) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandCollectionInterface
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface[]
array
The commands that shall be added to the collection.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface
The command before the passed commands shall be inserted (optional).
clearCommands() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandCollectionInterface
getCommandNamed(string $name) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface
string
The command name to search.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
If no command was found. |
---|
getCommands() : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface[] | array
hasCommand(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $command) : bool
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface
The command instance to search for.
bool
hasCommandNamed(string $name) : bool
string
The command name to search.
bool
removeCommand(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $command) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandCollectionInterface
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface
The command to remove.
removeCommandNamed(string $name) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandCollectionInterface
string
The command name to remove.
removeCommands(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface[]|array $commands) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandCollectionInterface
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface[]
array
The commands that shall be removed from the collection.
setCommands(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface[]|array $commands) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandCollectionInterface
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface[]
array
The commands that shall be contained within the collection.