RemoveCardAction extends AddCardAction
Table of Contents
Methods
- compareParams() : bool
- Check if params duplicated with previously step
- delete() : bool
- If need - do preliminary operations before del from table
- enrichParams() : array<string|int, mixed>
- execute() : bool
- getJsCommand() : array<string|int, mixed>
- getJsCommandName() : string
- Get name of JS action command
- getParams() : array<string|int, mixed>
- isNeedPush() : bool
- Check correctly params before push
- setParams() : void
Methods
compareParams()
Check if params duplicated with previously step
public
static compareParams(array<string|int, mixed> $oldParams, array<string|int, mixed> $newParams) : bool
Parameters
- $oldParams : array<string|int, mixed>
- $newParams : array<string|int, mixed>
Return values
booldelete()
If need - do preliminary operations before del from table
public
delete() : bool
Return values
boolenrichParams()
public
static enrichParams(array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
- $params : array<string|int, mixed>
Return values
array<string|int, mixed>execute()
public
execute([bool $undo = true ]) : bool
Parameters
- $undo : bool = true
Return values
boolgetJsCommand()
public
getJsCommand([bool $undo = true ]) : array<string|int, mixed>
Parameters
- $undo : bool = true
-
- if false - redo
Return values
array<string|int, mixed>getJsCommandName()
Get name of JS action command
public
static getJsCommandName() : string
Return values
stringgetParams()
public
getParams() : array<string|int, mixed>
Return values
array<string|int, mixed>isNeedPush()
Check correctly params before push
public
isNeedPush() : bool
Return values
boolsetParams()
public
setParams(array<string|int, mixed> $params[, bool $prepared = false ]) : void
Parameters
- $params : array<string|int, mixed>
- $prepared : bool = false
-
- If true - no need prepare before set. Default - need prepare