![]() |
Bearsampp 2025.8.29
API Documentation for Bearsampp
|
Public Member Functions | |
| __construct ($args) | |
Data Fields | |
| const | REFRESH = 'refresh' |
| const | RELOAD = 'reload' |
| const | START = 'start' |
| const | STATUS_ERROR = 2 |
| const | STATUS_SUCCESS = 0 |
| const | STATUS_WARNING = 1 |
| const | STOP = 'stop' |
Private Member Functions | |
| addLog ($data) | |
| getProcs () | |
| procRefresh ($args) | |
| procReload ($args) | |
| procStart ($args) | |
| procStop ($args) | |
| sendLogs () | |
| setStatus ($status) | |
Private Attributes | |
| $logs = '' | |
| $status = self::STATUS_SUCCESS | |
Class ActionExt handles the execution of various extended actions.
Definition at line 13 of file class.action.ext.php.
| __construct | ( | $args | ) |
Constructor for the ActionExt class.
| array | $args | The command line arguments passed to the action. |
Definition at line 41 of file class.action.ext.php.
References $proc, addLog(), getProcs(), sendLogs(), and setStatus().
|
private |
Adds a log entry to the logs.
| string | $data | The log entry to add. |
Definition at line 99 of file class.action.ext.php.
Referenced by __construct(), procRefresh(), procReload(), procStart(), and procStop().
|
private |
Retrieves the list of available actions.
Definition at line 84 of file class.action.ext.php.
Referenced by __construct().
|
private |
Refreshes the application by calling the reload action.
| array | $args | The command line arguments passed to the action. |
Definition at line 217 of file class.action.ext.php.
References $bearsamppAction, addLog(), APP_TITLE, Action\RELOAD, and setStatus().
|
private |
Reloads the application by stopping and starting services.
| array | $args | The command line arguments passed to the action. |
Definition at line 176 of file class.action.ext.php.
References $bearsamppBins, $bearsamppRoot, addLog(), APP_TITLE, Win32Ps\killBins(), and setStatus().
|
private |
Starts the application.
| array | $args | The command line arguments passed to the action. |
Definition at line 130 of file class.action.ext.php.
References $bearsamppRoot, addLog(), APP_TITLE, and setStatus().
|
private |
Stops the application and removes services.
| array | $args | The command line arguments passed to the action. |
Definition at line 148 of file class.action.ext.php.
References $bearsamppBins, addLog(), APP_TITLE, and setStatus().
|
private |
Sends the logs as a JSON-encoded response.
Definition at line 117 of file class.action.ext.php.
Referenced by __construct().
|
private |
Sets the status of the action.
| int | $status | The status code to set. |
Definition at line 109 of file class.action.ext.php.
References $status.
Referenced by __construct(), procRefresh(), procReload(), procStart(), and procStop().
|
private |
Definition at line 34 of file class.action.ext.php.
|
private |
Definition at line 29 of file class.action.ext.php.
Referenced by setStatus().
| const REFRESH = 'refresh' |
Definition at line 19 of file class.action.ext.php.
| const RELOAD = 'reload' |
Definition at line 18 of file class.action.ext.php.
| const START = 'start' |
Definition at line 16 of file class.action.ext.php.
| const STATUS_ERROR = 2 |
Definition at line 22 of file class.action.ext.php.
| const STATUS_SUCCESS = 0 |
Definition at line 24 of file class.action.ext.php.
| const STATUS_WARNING = 1 |
Definition at line 23 of file class.action.ext.php.
| const STOP = 'stop' |
Definition at line 17 of file class.action.ext.php.