Bristol SU Support Package
|
Public Member Functions | |
schedule ($alias, $command, $cron) | |
all () | |
forAlias (string $alias) | |
Private Attributes | |
$commands = [] | |
Holds information about scheduled commands
Definition at line 10 of file CommandStore.php.
BristolSU\Support\ModuleInstance\Scheduler\CommandStore::all | ( | ) |
Retrieve all scheduled commands
Implements BristolSU\Support\ModuleInstance\Contracts\Scheduler\CommandStore.
Definition at line 49 of file CommandStore.php.
References BristolSU\Support\ModuleInstance\Scheduler\CommandStore\$commands.
BristolSU\Support\ModuleInstance\Scheduler\CommandStore::forAlias | ( | string | $alias | ) |
Get all scheduled commands for a given module
string | $alias | Alias of the module |
Implements BristolSU\Support\ModuleInstance\Contracts\Scheduler\CommandStore.
Definition at line 60 of file CommandStore.php.
BristolSU\Support\ModuleInstance\Scheduler\CommandStore::schedule | ( | $alias, | |
$command, | |||
$cron | |||
) |
Register a new scheduled command
string | $alias | Module alias registering the command |
string | $command | Command to run |
string | $cron | Cron string to represent the frequency of the command running |
Implements BristolSU\Support\ModuleInstance\Contracts\Scheduler\CommandStore.
Definition at line 36 of file CommandStore.php.
|
private |
Definition at line 25 of file CommandStore.php.
Referenced by BristolSU\Support\ModuleInstance\Scheduler\CommandStore\all().