![]() |
Bearsampp 2025.8.29
|
Public Member Functions | |
__construct ($args) | |
processWindow ($window, $id, $ctrl, $param1, $param2) |
Static Public Member Functions | |
static | terminatePhpProcesses ($excludePid, $window=null, $splash=null, $timeout=10) |
Data Fields | |
const | GAUGE_OTHERS = 1 |
const | GAUGE_PROCESSES = 1 |
Private Attributes | |
$splash |
Class ActionQuit Handles the quitting process of the Bearsampp application. Displays a splash screen and stops all services and processes.
Definition at line 16 of file class.action.quit.php.
__construct | ( | $args | ) |
ActionQuit constructor. Initializes the quitting process, displays the splash screen, and sets up the main loop.
array | $args | Command line arguments. |
Definition at line 35 of file class.action.quit.php.
References $bearsamppBins, $bearsamppCore, $bearsamppLang, APP_TITLE, Lang\EXIT_LEAVING_TEXT, and Lang\QUIT.
processWindow | ( | $window, | |
$id, | |||
$ctrl, | |||
$param1, | |||
$param2 ) |
Processes the splash screen window events. Stops all services, deletes symlinks, and kills remaining processes.
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 64 of file class.action.quit.php.
References $bearsamppBins, $bearsamppLang, Symlinks\deleteCurrentSymlinks(), exit, Lang\EXIT_REMOVE_SERVICE_TEXT, Lang\EXIT_STOP_OTHER_PROCESS_TEXT, Win32Ps\getCurrentPid(), Win32Ps\killBins(), BinMailpit\SERVICE_NAME, BinMariadb\SERVICE_NAME, BinMemcached\SERVICE_NAME, BinMysql\SERVICE_NAME, BinPostgresql\SERVICE_NAME, BinXlight\SERVICE_NAME, and terminatePhpProcesses().
|
static |
Terminates PHP processes with timeout handling.
int | $excludePid | Process ID to exclude |
mixed | $window | Window handle or null |
mixed | $splash | Splash screen or null |
int | $timeout | Maximum time to wait for termination (seconds) |
Definition at line 131 of file class.action.quit.php.
References $proc, $splash, Win32Ps\EXECUTABLE_PATH, exit, Win32Ps\getCurrentPid(), Win32Ps\getListProcs(), Win32Ps\kill(), Vbs\killProc(), Util\logTrace(), and Win32Ps\PROCESS_ID.
Referenced by processWindow(), and ActionStartup\processWindow().
|
private |
Definition at line 21 of file class.action.quit.php.
Referenced by terminatePhpProcesses().
const GAUGE_OTHERS = 1 |
Definition at line 27 of file class.action.quit.php.
const GAUGE_PROCESSES = 1 |
Gauge values for progress bar increments.
Definition at line 26 of file class.action.quit.php.