|
Bearsampp 2026.3.26
API documentation
|
Public Member Functions | |
| __construct ($args) | |
| processWindow ($window, $id, $ctrl, $param1, $param2) | |
Data Fields | |
| const | GAUGE_PER_SERVICE = 2 |
Private Attributes | |
| $processed = false | |
| $splash | |
Class ActionRestartAllServices Handles restarting all services with a single splash screen showing progress. Stops all services first, then starts them all.
Definition at line 15 of file class.action.restartAllServices.php.
| __construct | ( | $args | ) |
ActionRestartAllServices constructor. Initializes the restarting process, displays the splash screen, and sets up the main loop.
| array | $args | Command line arguments. |
Definition at line 38 of file class.action.restartAllServices.php.
References $bearsamppBins, $bearsamppCore, $bearsamppLang, Lang\LOADING_RESTART_SERVICES, and Lang\MENU_RESTART_SERVICES.
| processWindow | ( | $window, | |
| $id, | |||
| $ctrl, | |||
| $param1, | |||
| $param2 ) |
Processes the splash screen window events. Stops all services, then starts them all sequentially with progress updates.
| resource | $window | The window resource. |
| int | $id | The event ID. |
| int | $ctrl | The control ID. |
| mixed | $param1 | Additional parameter 1. |
| mixed | $param2 | Additional parameter 2. |
Definition at line 69 of file class.action.restartAllServices.php.
References $bearsamppBins, $bearsamppLang, exit, ServiceHelper\getServiceDisplayName(), Lang\LOADING_COMPLETE, Lang\LOADING_START_SERVICE, Lang\LOADING_STOP_SERVICE, ServiceHelper\processServices(), ServiceHelper\startService(), and ServiceHelper\stopService().
|
private |
Definition at line 25 of file class.action.restartAllServices.php.
|
private |
Definition at line 20 of file class.action.restartAllServices.php.
| const GAUGE_PER_SERVICE = 2 |
Gauge value for progress bar increments.
Definition at line 30 of file class.action.restartAllServices.php.