Bristol SU Support Package
|
Public Member Functions | |
forEvent (int $moduleInstanceId, string $event) | |
forModuleInstance (int $moduleInstanceId) | |
getById (int $id) | |
all () | |
update (int $id, array $attributes) | |
delete (int $id) | |
Definition at line 9 of file ActionInstanceRepository.php.
BristolSU\Support\Action\ActionInstanceRepository::all | ( | ) |
Get all action instances registered
Implements BristolSU\Support\Action\Contracts\ActionInstanceRepository.
Definition at line 50 of file ActionInstanceRepository.php.
BristolSU\Support\Action\ActionInstanceRepository::delete | ( | int | $id | ) |
Delete an action instance
int | $id |
ModelNotFoundException | |
Implements BristolSU\Support\Action\Contracts\ActionInstanceRepository.
Definition at line 81 of file ActionInstanceRepository.php.
References BristolSU\Support\Action\ActionInstanceRepository\getById().
BristolSU\Support\Action\ActionInstanceRepository::forEvent | ( | int | $moduleInstanceId, |
string | $event | ||
) |
Implements BristolSU\Support\Action\Contracts\ActionInstanceRepository.
Definition at line 15 of file ActionInstanceRepository.php.
BristolSU\Support\Action\ActionInstanceRepository::forModuleInstance | ( | int | $moduleInstanceId | ) |
Get all action instances for a given module instance
int | $moduleInstanceId | ID of the module instance to get the action instances from |
Implements BristolSU\Support\Action\Contracts\ActionInstanceRepository.
Definition at line 28 of file ActionInstanceRepository.php.
BristolSU\Support\Action\ActionInstanceRepository::getById | ( | int | $id | ) |
Get an action instance by ID
int | $id |
ModelNotFoundException |
Implements BristolSU\Support\Action\Contracts\ActionInstanceRepository.
Definition at line 41 of file ActionInstanceRepository.php.
Referenced by BristolSU\Support\Action\ActionInstanceRepository\delete(), and BristolSU\Support\Action\ActionInstanceRepository\update().
BristolSU\Support\Action\ActionInstanceRepository::update | ( | int | $id, |
array | $attributes | ||
) |
Update an action instance
int | $id | |
array | $attributes |
ModelNotFoundException |
Implements BristolSU\Support\Action\Contracts\ActionInstanceRepository.
Definition at line 64 of file ActionInstanceRepository.php.
References BristolSU\Support\Action\ActionInstanceRepository\getById().