![]() |
Bearsampp 2025.8.29
API Documentation for Bearsampp
|
Public Member Functions | |
| __construct ($args) | |
| processWindow ($window, $id, $ctrl, $param1, $param2) | |
Data Fields | |
| const | DISPLAY_OK = 'displayOk' |
Private Member Functions | |
| showVersionOkMessageBox ($lang, $winbinder) | |
| showVersionUpdateWindow ($lang, $winbinder, $core, $githubLatestVersion) | |
Private Attributes | |
| $currentVersion | |
| $githubLatestVersionUrl | |
| $latestVersion | |
| $wbBtnOk | |
| $wbImage | |
| $wbLinkChangelog | |
| $wbLinkFull | |
| $wbWindow | |
Definition at line 20 of file class.action.checkVersion.php.
| __construct | ( | $args | ) |
Constructor for the ActionCheckVersion class.
| array | $args | Command line arguments passed to the script. |
Definition at line 39 of file class.action.checkVersion.php.
References $bearsamppCore, $bearsamppLang, $githubLatestVersion, $githubVersionData, APP_GITHUB_LATEST_URL, Util\getLatestVersion(), showVersionOkMessageBox(), showVersionUpdateWindow(), and Util\startLoading().
| processWindow | ( | $window, | |
| $id, | |||
| $ctrl, | |||
| $param1, | |||
| $param2 ) |
Processes window events and handles user interactions.
| resource | $window | The window resource. |
| int | $id | The control ID that triggered the event. |
| resource | $ctrl | The control resource. |
| mixed | $param1 | Additional parameter 1. |
| mixed | $param2 | Additional parameter 2. |
Definition at line 118 of file class.action.checkVersion.php.
References $bearsamppConfig, APP_GITHUB_LATEST_URL, WinBinder\CTRL_ID, Util\getLatestVersion(), and Util\logError().
|
private |
Displays a message box indicating that the current version is the latest.
| Lang | $lang | Language processor instance. |
| WinBinder | $winbinder | WinBinder instance for creating windows and controls. |
Definition at line 100 of file class.action.checkVersion.php.
References Lang\CHECK_VERSION_LATEST_TEXT, Lang\CHECK_VERSION_TITLE, and Util\stopLoading().
Referenced by __construct().
|
private |
Displays a window with the latest version information.
| Lang | $lang | Language processor instance. |
| WinBinder | $winbinder | WinBinder instance for creating windows and controls. |
| Core | $core | Core instance for accessing application resources. |
| string | $githubLatestVersion | The latest version available on GitHub. |
Definition at line 74 of file class.action.checkVersion.php.
References $githubLatestVersion, APP_TITLE, Lang\BUTTON_OK, Lang\CHECK_VERSION_AVAILABLE_TEXT, Lang\CHECK_VERSION_TITLE, Lang\DOWNLOAD, and Util\stopLoading().
Referenced by __construct().
|
private |
Definition at line 30 of file class.action.checkVersion.php.
|
private |
Definition at line 32 of file class.action.checkVersion.php.
|
private |
Definition at line 31 of file class.action.checkVersion.php.
|
private |
Definition at line 28 of file class.action.checkVersion.php.
|
private |
Definition at line 25 of file class.action.checkVersion.php.
|
private |
Definition at line 26 of file class.action.checkVersion.php.
|
private |
Definition at line 27 of file class.action.checkVersion.php.
|
private |
Definition at line 24 of file class.action.checkVersion.php.
| const DISPLAY_OK = 'displayOk' |
Definition at line 22 of file class.action.checkVersion.php.
Referenced by TplApp\getSectionMenuRight().