class Action extends Child

Properties

public $label Action label.
public $listable Show action in crud table.
public $editable Show action in edit form.
public $style Action style.
public $icon Action icon
public $confirm Confirmation question string.
public $done JS code to be executed when action ends successfully.
public $bulk Enable as bulk action.
public $form Improper action - it generates form.
public $filter Callback to determinate if the action should be visible for a particular item.

Public Methods

final
__call(string $name, array $arguments)

No description

from Child
final
void
_setKey(string $key)

No description

from Child
final
string
_getKey()

No description

from Child
final
void
_setNext(string|null $key)

No description

from Child
final
string|null
_getNext()

No description

from Child
final
void
_setPrev(string|null $key)

No description

from Child
final
string|null
_getPrev()

No description

from Child
final
void
_setParent(Chainset $obj)

No description

from Child
final
_getParent()

No description

from Child
final
before(string|null $target = null)

Place child just before $target.

from Child
final
after(string|null $target = null)

Place child just after $target.

from Child
final
getName()

Get normalized name of action

final
getAction()

No description

hidden()

Shortcut for nonlistable && noneditable

filter($func)

Filter.

confirm($str = '')

Confirm.

done($js)

JS to be done after action.

bulk()

Bulk action

nonbulk()

Not a bulk action

form()

Form action.

nonform()

Not form action

nonlistable()

Do not show in crud table

listable()

Show in crud table

noneditable()

Do not show in edit form

editable()

Show in edit form

danger()

Style - danger

primary()

Style - primary

secondary()

Style . secondary

success()

Style - success

warning()

Style - warning

Protected Methods

Private Methods

Details

in Child at line 28
final __call(string $name, array $arguments)

Parameters

string $name
array $arguments

in Child at line 33
final void _setKey(string $key)

Parameters

string $key

Return Value

void

in Child at line 37
final string _getKey()

Return Value

string

in Child at line 41
final void _setNext(string|null $key)

Parameters

string|null $key

Return Value

void

in Child at line 45
final string|null _getNext()

Return Value

string|null

in Child at line 49
final void _setPrev(string|null $key)

Parameters

string|null $key

Return Value

void

in Child at line 53
final string|null _getPrev()

Return Value

string|null

in Child at line 57
final void _setParent(Chainset $obj)

Parameters

Chainset $obj

Return Value

void

in Child at line 61
final Chainset _getParent()

Return Value

Chainset

in Child at line 68
final Child before(string|null $target = null)

Place child just before $target.

Parameters

string|null $target

Return Value

Child

in Child at line 94
final Child after(string|null $target = null)

Place child just after $target.

Parameters

string|null $target

Return Value

Child

at line 61
final getName()

Get normalized name of action

at line 68
final getAction()

at line 89
hidden()

Shortcut for nonlistable && noneditable

at line 98
filter($func)

Filter.

Parameters

$func

at line 106
confirm($str = '')

Confirm.

Parameters

$str

at line 116
done($js)

JS to be done after action.

Parameters

$js

at line 124
bulk()

Bulk action

at line 132
nonbulk()

Not a bulk action

at line 141
form()

Form action.

Also adds noneditable - cannot show form when edit form already shown.

at line 150
nonform()

Not form action

at line 158
nonlistable()

Do not show in crud table

at line 166
listable()

Show in crud table

at line 174
noneditable()

Do not show in edit form

at line 182
editable()

Show in edit form

at line 190
danger()

Style - danger

at line 198
primary()

Style - primary

at line 206
secondary()

Style . secondary

at line 214
success()

Style - success

at line 222
warning()

Style - warning