![]() |
2024.8.23
|
Public Member Functions | |
__construct ($args) | |
incrProgressBar ($nb=1) | |
processLoading ($window, $id, $ctrl, $param1, $param2) | |
Data Fields | |
const | GAUGE = 20 |
const | WINDOW_HEIGHT = 90 |
const | WINDOW_WIDTH = 360 |
Private Attributes | |
$wbProgressBar | |
$wbWindow | |
Class ActionLoading
This class handles the loading action, including the creation and management of a progress bar window.
Definition at line 15 of file class.action.loading.php.
ActionLoading::__construct | ( | $args | ) |
ActionLoading constructor.
Initializes the loading action, creates the progress bar window, and starts the main loop.
array | $args | The arguments passed to the constructor. |
Definition at line 39 of file class.action.loading.php.
References $bearsamppCore, $bearsamppLang, Win32Ps\getCurrentPid(), Lang\LOADING, WinBinder\SYSINFO_WORKAREA, and WINDOW_WIDTH.
ActionLoading::incrProgressBar | ( | $nb = 1 | ) |
Increments the progress bar by a specified number of steps.
int | $nb | The number of steps to increment the progress bar by. Default is 1. |
Definition at line 68 of file class.action.loading.php.
References $bearsamppCore.
Referenced by processLoading().
ActionLoading::processLoading | ( | $window, | |
$id, | |||
$ctrl, | |||
$param1, | |||
$param2 ) |
Processes the loading action, including handling window events and updating the progress bar.
mixed | $window | The window object. |
int | $id | The ID of the event. |
mixed | $ctrl | The control object. |
mixed | $param1 | The first parameter of the event. |
mixed | $param2 | The second parameter of the event. |
Definition at line 90 of file class.action.loading.php.
References $bearsamppRoot, GAUGE, Win32Ps\getCurrentPid(), incrProgressBar(), and Win32Ps\kill().
|
private |
Definition at line 30 of file class.action.loading.php.
|
private |
Definition at line 27 of file class.action.loading.php.
const ActionLoading::GAUGE = 20 |
Definition at line 24 of file class.action.loading.php.
Referenced by processLoading().
const ActionLoading::WINDOW_HEIGHT = 90 |
Definition at line 21 of file class.action.loading.php.
const ActionLoading::WINDOW_WIDTH = 360 |
Definition at line 18 of file class.action.loading.php.
Referenced by __construct().