AdminSystemAutomation extends AdminController
Admin System Automation Settings
Table of Contents
Methods
| index() | Automation settings |
| preAction() | Pre-action setup method that is called before the index method, or the set controller action |
| createCronCommand() | Generate the cron command for this installation that should be accurate |
| createCronKey() | Creates and saves a system cron key |
| getPathToPhp() | Try to get the path to the php excecutable |
Methods
index()
Automation settings
public
index() : mixed
preAction()
Pre-action setup method that is called before the index method, or the set controller action
public
preAction() : mixed
createCronCommand()
Generate the cron command for this installation that should be accurate
private
createCronCommand([bool $http_command = false ][, bool $use_placeholder = false ]) : string
Parameters
- $http_command : bool = false
-
Whether to generate an HTTP command or a CLI command
- $use_placeholder : bool = false
-
Whether to use a placeholder instead of the actual cron key
Return values
string —The cron command
createCronKey()
Creates and saves a system cron key
private
createCronKey() : string
Return values
string —The cron key generated
getPathToPhp()
Try to get the path to the php excecutable
private
getPathToPhp(bool $windows) : string
Parameters
- $windows : bool
-
Whether the OS being used is Windows
Return values
string —The path to php