Interface CommandInterface.

This interface describes a command that can be applied to a model.

 Methods

Return the description of the command.

getDescription() : array

Returns

array

Fetch extra information.

getExtra() : \ArrayObject

Returns

Return the label of the command.

getLabel() : array

Returns

array

Return the name of the command.

getName() : string

Returns

string

Return the action properties of the command.

getParameters() : \ArrayObject

Returns

Determine if the command is disabled.

isDisabled() : boolean

Returns

boolean

Set the description of the command.

setDescription(string $description) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface

Parameters

$description

string

The description text.

Returns

Set the command enabled or disabled (true means disabled).

setDisabled(boolean $disabled) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface
fluent This method is part of a fluent interface and will return the same instance

Parameters

$disabled

boolean

The flag.

Returns

\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface

Set the label of the command.

setLabel(string $label) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface

Set the name of the command.

setName(string $name) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface

Parameters

$name

string

The name of the command.

Returns

Set the action properties of the command.

setParameters(\ArrayObject $parameters) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface