Actions
in package
FinalYes
Tags
Table of Contents
Properties
Methods
- add() : self
- addBatchAction() : self
- disable() : self
- getAsDto() : ActionConfigDto
- new() : self
- remove() : self
- reorder() : self
- set() : self
- setPermission() : self
- setPermissions() : self
- update() : self
- __construct() : mixed
- createBuiltInAction() : Action
- The $pageName is needed because sometimes the same action has different config depending on where it's displayed (to display an icon in 'detail' but not in 'index', etc.).
- doAddAction() : self
Properties
$dto
private
ActionConfigDto
$dto
Methods
add()
public
add(string $pageName, Action|string $actionNameOrObject) : self
Parameters
- $pageName : string
- $actionNameOrObject : Action|string
Return values
selfaddBatchAction()
public
addBatchAction(Action|string $actionNameOrObject) : self
Parameters
- $actionNameOrObject : Action|string
Return values
selfdisable()
public
disable(string ...$disabledActionNames) : self
Parameters
- $disabledActionNames : string
Return values
selfgetAsDto()
public
getAsDto(string|null $pageName) : ActionConfigDto
Parameters
- $pageName : string|null
Return values
ActionConfigDtonew()
public
static new() : self
Return values
selfremove()
public
remove(string $pageName, string $actionName) : self
Parameters
- $pageName : string
- $actionName : string
Return values
selfreorder()
public
reorder(string $pageName, array<string|int, mixed> $orderedActionNames) : self
Parameters
- $pageName : string
- $orderedActionNames : array<string|int, mixed>
Return values
selfset()
public
set(string $pageName, Action|string $actionNameOrObject) : self
Parameters
- $pageName : string
- $actionNameOrObject : Action|string
Return values
selfsetPermission()
public
setPermission(string $actionName, string $permission) : self
Parameters
- $actionName : string
- $permission : string
Return values
selfsetPermissions()
public
setPermissions(array<string|int, mixed> $permissions) : self
Parameters
- $permissions : array<string|int, mixed>
-
Syntax: ['actionName' => 'actionPermission', ...]
Return values
selfupdate()
public
update(string $pageName, string $actionName, callable $callable) : self
Parameters
- $pageName : string
- $actionName : string
- $callable : callable
Return values
self__construct()
private
__construct(ActionConfigDto $actionConfigDto) : mixed
Parameters
- $actionConfigDto : ActionConfigDto
createBuiltInAction()
The $pageName is needed because sometimes the same action has different config depending on where it's displayed (to display an icon in 'detail' but not in 'index', etc.).
private
createBuiltInAction(string $pageName, string $actionName) : Action
Parameters
- $pageName : string
- $actionName : string
Return values
ActiondoAddAction()
private
doAddAction(string $pageName, Action|string $actionNameOrObject[, bool $isBatchAction = false ]) : self
Parameters
- $pageName : string
- $actionNameOrObject : Action|string
- $isBatchAction : bool = false