Bristol SU Support Package
|
Public Member Functions | |
__construct (array $data=[]) | |
handle () | |
getResponse () | |
option (string $key, $default=null) | |
getData () | |
run () | |
![]() | |
setActionInstanceId (int $actionInstanceId) | |
setEventFields (array $eventFields) | |
setSettings (array $settings) | |
saveHistory (ActionResponse $response) | |
Static Public Member Functions | |
static | options () |
Private Attributes | |
$data | |
$response | |
Represents a queueable action.
Definition at line 17 of file Action.php.
BristolSU\Support\Action\Contracts\Action::__construct | ( | array | $data = [] | ) |
Definition at line 31 of file Action.php.
References BristolSU\Support\Action\Contracts\Action\$data, and BristolSU\Support\Action\Contracts\Action\options().
BristolSU\Support\Action\Contracts\Action::getData | ( | ) |
Get all setting values
Definition at line 87 of file Action.php.
References BristolSU\Support\Action\Contracts\Action\$data, and BristolSU\Support\Action\Contracts\Action\run().
BristolSU\Support\Action\Contracts\Action::getResponse | ( | ) |
Get the response as given by the action after running
Definition at line 62 of file Action.php.
References BristolSU\Support\Action\Contracts\Action\$response.
Referenced by BristolSU\Support\Action\Contracts\Action\handle().
BristolSU\Support\Action\Contracts\Action::handle | ( | ) |
Definition at line 45 of file Action.php.
References BristolSU\Support\Action\ActionResponse\failure(), BristolSU\Support\Action\Contracts\Action\getResponse(), and BristolSU\Support\Action\History\RecordsHistory\saveHistory().
BristolSU\Support\Action\Contracts\Action::option | ( | string | $key, |
$default = null |
|||
) |
Get a piece of information from the settings
string | $key | |
null | $default |
Definition at line 74 of file Action.php.
Referenced by BristolSU\Support\Action\Actions\Log\run().
|
staticabstract |
A form schema describing the settings the actions need
Any options here will be shown to the user on setup. The results will be passed into the construct of this class.
Referenced by BristolSU\Support\Action\Contracts\Action\__construct().
|
abstract |
Run the action
Referenced by BristolSU\Support\Action\Contracts\Action\getData().
|
private |
Definition at line 24 of file Action.php.
Referenced by BristolSU\Support\Action\Contracts\Action\__construct(), and BristolSU\Support\Action\Contracts\Action\getData().
|
private |
Definition at line 29 of file Action.php.
Referenced by BristolSU\Support\Action\Contracts\Action\getResponse().