![]() |
Bearsampp 2026.5.5
|
Public Member Functions | |
| __construct ($args) | |
| processWindow ($window, $id, $ctrl, $param1, $param2) | |
Data Fields | |
| const | GAUGE_PER_SERVICE = 2 |
Private Member Functions | |
| getServiceShutdownOrder () | |
| getServiceStartupOrder () | |
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.
|
private |
Get the optimal service shutdown order based on dependencies. Services are ordered to stop dependent services first, then core services. This is the reverse of the startup order.
Definition at line 66 of file class.action.restartAllServices.php.
References BinApache\SERVICE_NAME, BinMailpit\SERVICE_NAME, BinMariadb\SERVICE_NAME, BinMemcached\SERVICE_NAME, BinMysql\SERVICE_NAME, BinPostgresql\SERVICE_NAME, and BinXlight\SERVICE_NAME.
Referenced by processWindow().
|
private |
Get the optimal service startup order based on dependencies. Services are ordered to start core services first, then dependent services. This is the reverse of the shutdown order.
Definition at line 93 of file class.action.restartAllServices.php.
References BinApache\SERVICE_NAME, BinMailpit\SERVICE_NAME, BinMariadb\SERVICE_NAME, BinMemcached\SERVICE_NAME, BinMysql\SERVICE_NAME, BinPostgresql\SERVICE_NAME, and BinXlight\SERVICE_NAME.
Referenced by processWindow().
| processWindow | ( | $window, | |
| $id, | |||
| $ctrl, | |||
| $param1, | |||
| $param2 ) |
Processes the splash screen window events. Stops all services in shutdown order, then starts them in startup order 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 123 of file class.action.restartAllServices.php.
References $bearsamppBins, $bearsamppLang, exit, ServiceHelper\getBinFromServiceName(), ServiceHelper\getServiceDisplayName(), getServiceShutdownOrder(), getServiceStartupOrder(), ServiceHelper\getSyntaxCheckCmd(), Lang\LOADING_COMPLETE, Lang\LOADING_START_SERVICE, Lang\LOADING_STOP_SERVICE, 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.