Class GetOperationButtonEvent.

This event gets emitted when an operation button is rendered.

 Methods

Retrieve the ids of the child records of the current model.

getChildRecordIds() : array

Returns

array

Get determinator if there exists a circular reference.

getCircularReference() : boolean
This flag determines if there exists a circular reference between the item currently in the clipboard and the current model. A circular reference is of relevance when performing a cut and paste operation for example.
deprecated Use isCircularReference().
SuppressWarnings (PHPMD.BooleanGetMethodName)

Returns

boolean

Retrieve the href for the button.

getHref() : string

Returns

string

Get the next model in the list, succeeding the current model.

getNext() : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

Get the previous model in the list, preceding the current model.

getPrevious() : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

Get determinator if there exists a circular reference.

isCircularReference() : boolean
This flag determines if there exists a circular reference between the item currently in the clipboard and the current model. A circular reference is of relevance when performing a cut and paste operation for example.

Returns

boolean

Determine if the command is disabled.

isDisabled() : boolean

Returns

boolean

Set the ids of the child records of the current model.

setChildRecordIds(array $childRecordIds) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent
fluent This method is part of a fluent interface and will return the same instance

Parameters

$childRecordIds

array

The list of ids.

Returns

\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent

Set determinator if there exists a circular reference.

setCircularReference(boolean $circularReference) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent
This flag determines if there exists a circular reference between the item currently in the clipboard and the current model. A circular reference is of relevance when performing a cut and paste operation for example.
fluent This method is part of a fluent interface and will return the same instance

Parameters

$circularReference

boolean

The flag.

Returns

\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent

Set the attached command.

setCommand(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface $objCommand) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent
fluent This method is part of a fluent interface and will return the same instance

Parameters

Returns

\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent

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

setDisabled(boolean $disabled) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent
fluent This method is part of a fluent interface and will return the same instance

Parameters

$disabled

boolean

The flag.

Returns

\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent

Set the href for the button.

setHref(string $href) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent
fluent This method is part of a fluent interface and will return the same instance

Parameters

$href

string

The href.

Returns

\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent

Set the next model in the list, succeeding the current model.

setNext(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $next) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent
fluent This method is part of a fluent interface and will return the same instance

Parameters

Returns

\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent

Set the model currently in scope.

setObjModel(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent
fluent This method is part of a fluent interface and will return the same instance

Parameters

Returns

\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent

Set the previous model in the list, preceding the current model.

setPrevious(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $previous) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent
fluent This method is part of a fluent interface and will return the same instance

Parameters

$previous

\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

The id of the predecessor.

Returns

\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent

 Properties

 

The ids of any child records of the model.

$childRecordIds : array
 

Determinator if there is a circular reference from an item in the clipboard to the current model.

$circularReference : bool
 

The command for which the button is being rendered.

$command : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\CommandInterface
 

Disabled state of the button.

$disabled : bool
 

The href for the command.

$href : string
 

The model to which the command shall be applied to.

$model : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
 

The next model succeeding the current model.

$next : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
 

The model preceeding the current model.

$previous : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

 Constants

 

NAME

NAME