![]() |
Bearsampp 2025.8.29
|
Static Public Member Functions | |
static | loadApps () |
static | loadBins () |
static | loadConfig () |
static | loadCore () |
static | loadHomepage () |
static | loadLang () |
static | loadOpenSsl () |
static | loadRegistry () |
static | loadTools () |
static | loadWinbinder () |
Data Fields | |
$path | |
const | ERROR_HANDLER = 'errorHandler' |
Private Member Functions | |
aetrayPath ($path) |
Static Private Member Functions | |
static | debugStringBacktrace () |
Private Attributes | |
$isRoot | |
$procs |
Class Root
This class represents the root of the Bearsampp application. It handles the initialization, configuration, and management of various components and settings within the application.
Definition at line 16 of file class.root.php.
__construct | ( | $rootPath | ) |
Constructs a Root object with the specified root path.
string | $rootPath | The root path of the application. |
Definition at line 29 of file class.root.php.
References isRoot().
|
private |
Formats a path for AeTrayMenu.
string | $path | The path to format. |
Definition at line 134 of file class.root.php.
References $path, and getRootPath().
Referenced by getCorePath(), and getRootPath().
|
staticprivate |
Generates a debug backtrace string.
Definition at line 583 of file class.root.php.
Referenced by errorHandler().
errorHandler | ( | $errno, | |
$errstr, | |||
$errfile, | |||
$errline ) |
Handles errors and logs them to the error log file.
int | $errno | The level of the error raised. |
string | $errstr | The error message. |
string | $errfile | The filename that the error was raised in. |
int | $errline | The line number the error was raised at. |
Definition at line 540 of file class.root.php.
References debugStringBacktrace(), E_USER_ERROR, Util\formatUnixPath(), getErrorLogFilePath(), and getRootPath().
getAliasPath | ( | $aetrayPath = false | ) |
Gets the path to the alias directory.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 146 of file class.root.php.
References getRootPath().
getAppsPath | ( | $aetrayPath = false | ) |
Gets the path to the apps directory.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 157 of file class.root.php.
References getRootPath().
getBatchLogFilePath | ( | $aetrayPath = false | ) |
Gets the path to the batch log file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 366 of file class.root.php.
References getLogsPath().
getBinPath | ( | $aetrayPath = false | ) |
Gets the path to the bin directory.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 168 of file class.root.php.
References getRootPath().
getConfigFilePath | ( | $aetrayPath = false | ) |
Gets the path to the configuration file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 267 of file class.root.php.
References getRootPath().
getCorePath | ( | $aetrayPath = false | ) |
Gets the path to the core directory.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 179 of file class.root.php.
References $path, and aetrayPath().
Referenced by register().
getErrorLogFilePath | ( | $aetrayPath = false | ) |
Gets the path to the error log file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 311 of file class.root.php.
References getLogsPath().
Referenced by errorHandler(), and initErrorHandling().
getExeFilePath | ( | $aetrayPath = false | ) |
Gets the path to the executable file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 256 of file class.root.php.
References getRootPath().
getHomepageFilePath | ( | $aetrayPath = false | ) |
Gets the path to the homepage file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 410 of file class.root.php.
References getWwwPath().
getHomepageLogFilePath | ( | $aetrayPath = false | ) |
Gets the path to the homepage log file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 322 of file class.root.php.
References getLogsPath().
getIniFilePath | ( | $aetrayPath = false | ) |
Gets the path to the INI file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 278 of file class.root.php.
References getRootPath().
getLocalUrl | ( | $request = null | ) |
Constructs a local URL with the specified request.
string | null | $request | The specific request to append to the URL. |
Definition at line 431 of file class.root.php.
References $bearsamppBins.
getLogFilePath | ( | $aetrayPath = false | ) |
Gets the path to the log file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 300 of file class.root.php.
References getLogsPath().
getLogsPath | ( | $aetrayPath = false | ) |
Gets the path to the logs directory.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 190 of file class.root.php.
References getRootPath().
Referenced by getBatchLogFilePath(), getErrorLogFilePath(), getHomepageLogFilePath(), getLogFilePath(), getNssmLogFilePath(), getRegistryLogFilePath(), getServicesLogFilePath(), getStartupLogFilePath(), getVbsLogFilePath(), and getWinbinderLogFilePath().
getNssmLogFilePath | ( | $aetrayPath = false | ) |
Gets the path to the NSSM log file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 399 of file class.root.php.
References getLogsPath().
getProcessName | ( | ) |
Gets the name of the process.
Definition at line 420 of file class.root.php.
getProcs | ( | ) |
Retrieves the list of processes.
Definition at line 101 of file class.root.php.
References $procs.
getRegistryLogFilePath | ( | $aetrayPath = false | ) |
Gets the path to the registry log file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 344 of file class.root.php.
References getLogsPath().
getRootPath | ( | $aetrayPath = false | ) |
Gets the root path, optionally formatted for AeTrayMenu.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 122 of file class.root.php.
References $path, and aetrayPath().
Referenced by aetrayPath(), errorHandler(), getAliasPath(), getAppsPath(), getBinPath(), getConfigFilePath(), getExeFilePath(), getIniFilePath(), getLogsPath(), getSslPath(), getTmpPath(), getToolsPath(), getVhostsPath(), and getWwwPath().
getServicesLogFilePath | ( | $aetrayPath = false | ) |
Gets the path to the services log file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 333 of file class.root.php.
References getLogsPath().
getSslConfPath | ( | $aetrayPath = false | ) |
Gets the path to the SSL configuration file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 289 of file class.root.php.
References getSslPath().
getSslPath | ( | $aetrayPath = false | ) |
Gets the path to the SSL directory.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 201 of file class.root.php.
References getRootPath().
Referenced by getSslConfPath().
getStartupLogFilePath | ( | $aetrayPath = false | ) |
Gets the path to the startup log file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 355 of file class.root.php.
References getLogsPath().
getTmpPath | ( | $aetrayPath = false | ) |
Gets the path to the temporary directory.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 212 of file class.root.php.
References getRootPath().
getToolsPath | ( | $aetrayPath = false | ) |
Gets the path to the tools directory.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 223 of file class.root.php.
References getRootPath().
getVbsLogFilePath | ( | $aetrayPath = false | ) |
Gets the path to the VBS log file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 377 of file class.root.php.
References getLogsPath().
getVhostsPath | ( | $aetrayPath = false | ) |
Gets the path to the virtual hosts directory.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 234 of file class.root.php.
References getRootPath().
getWinbinderLogFilePath | ( | $aetrayPath = false | ) |
Gets the path to the Winbinder log file.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 388 of file class.root.php.
References getLogsPath().
getWwwPath | ( | $aetrayPath = false | ) |
Gets the path to the WWW directory.
bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 245 of file class.root.php.
References getRootPath().
Referenced by getHomepageFilePath().
initErrorHandling | ( | ) |
Initializes error handling settings for the application.
Definition at line 77 of file class.root.php.
References getErrorLogFilePath().
Referenced by register().
isRoot | ( | ) |
Checks if the current script is executed from the root path.
Definition at line 111 of file class.root.php.
References $isRoot.
Referenced by __construct(), and register().
|
static |
Loads the apps components of the application.
Definition at line 497 of file class.root.php.
Referenced by register().
|
static |
Loads the binary components of the application.
Definition at line 479 of file class.root.php.
References $bearsamppBins.
Referenced by register().
|
static |
Loads the configuration settings of the application.
Definition at line 452 of file class.root.php.
References $bearsamppConfig.
Referenced by ActionSwitchVersion\processWindow(), and register().
|
static |
Loads the core components of the application.
Definition at line 443 of file class.root.php.
References $bearsamppCore.
Referenced by register().
|
static |
Loads the homepage settings of the application.
Definition at line 526 of file class.root.php.
References $bearsamppHomepage.
Referenced by register().
|
static |
Loads the language settings of the application.
Definition at line 461 of file class.root.php.
References $bearsamppLang.
Referenced by register().
|
static |
Loads the OpenSSL settings of the application.
Definition at line 470 of file class.root.php.
Referenced by register().
|
static |
Loads the registry settings of the application.
Definition at line 517 of file class.root.php.
Referenced by register().
|
static |
Loads the tools components of the application.
Definition at line 488 of file class.root.php.
Referenced by register().
|
static |
Loads the Winbinder extension if available.
Definition at line 506 of file class.root.php.
Referenced by register().
register | ( | ) |
Registers the application components and initializes error handling.
Definition at line 38 of file class.root.php.
References getCorePath(), Win32Ps\getListProcs(), initErrorHandling(), isRoot(), loadApps(), loadBins(), loadConfig(), loadCore(), loadHomepage(), loadLang(), loadOpenSsl(), loadRegistry(), loadTools(), loadWinbinder(), and Util\logSeparator().
removeErrorHandling | ( | ) |
Removes the custom error handling, reverting to the default PHP error handling.
Definition at line 88 of file class.root.php.
|
private |
Definition at line 22 of file class.root.php.
Referenced by isRoot().
$path |
Definition at line 20 of file class.root.php.
Referenced by aetrayPath(), getCorePath(), and getRootPath().
|
private |
Definition at line 21 of file class.root.php.
Referenced by getProcs().
const ERROR_HANDLER = 'errorHandler' |
Definition at line 18 of file class.root.php.