![]() |
Bearsampp 2025.8.29
|
Public Member Functions | |
__construct ($args) |
Data Fields | |
const | QUIT = 'quit' |
const | RESTART = 'restart' |
Class ActionExec
This class handles the execution of specific actions based on the content of a file. The actions include quitting the application or reloading it. The actions are read from a file whose path is provided by the global $bearsamppCore object.
Definition at line 18 of file class.action.exec.php.
__construct | ( | $args | ) |
ActionExec constructor.
This constructor reads the action from a file specified by $bearsamppCore->getExec(). If the action is 'quit', it calls Batch\exitApp(). If the action is 'restart', it calls Batch\restartApp(). After executing the action, it deletes the action file.
array | $args | Arguments passed to the constructor (not used in the current implementation). |
Definition at line 39 of file class.action.exec.php.
References $bearsamppCore, Batch\exitApp(), Util\logTrace(), and Batch\restartApp().
const QUIT = 'quit' |
Constant representing the 'quit' action.
Definition at line 23 of file class.action.exec.php.
const RESTART = 'restart' |
Constant representing the 'reload' action.
Definition at line 28 of file class.action.exec.php.
Referenced by ActionManualRestart\__construct(), ActionStartup\processWindow(), and ActionSwitchVersion\processWindow().