class action_handler

Handles the execution of actions dynamically.

Methods

static array|null
execute(submission $submission, form $form)

Executes an action based on its type and provided parameters.

static array
get_execute_actions_order(array $edges, array $nodes)

No description

static array
get_registered_actions()

Returns a list of registered actions.

static array
get_registered_actions_info(mixed $formid)

Returns info of registered actions.

static bool
compare_values($left, $right, string $operator)

No description

static 
resolve_value($key, $submission, $context)

No description

Details

at line 52
static array|null execute(submission $submission, form $form)

Executes an action based on its type and provided parameters.

Parameters

submission $submission

the action type (must be registered in $actions)

form $form

parameters required by the action

Return Value

array|null

the result of the action execution

Exceptions

Exception

at line 148
static array get_execute_actions_order(array $edges, array $nodes)

No description

Parameters

array $edges
array $nodes

Return Value

array

at line 219
static array get_registered_actions()

Returns a list of registered actions.

Return Value

array

list of available actions

at line 231
static array get_registered_actions_info(mixed $formid)

Returns info of registered actions.

Parameters

mixed $formid

Return Value

array

list of available actions

at line 255
static protected bool compare_values($left, $right, string $operator)

No description

Parameters

$left
$right
string $operator

Return Value

bool

at line 281
static protected resolve_value($key, $submission, $context)

No description

Parameters

$key
$submission
$context