![]() |
Bearsampp 2026.5.5
|
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 141 of file class.root.php.
References $path, and getRootPath().
Referenced by getCorePath(), and getRootPath().
|
staticprivate |
Generates a debug backtrace string.
Definition at line 579 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 536 of file class.root.php.
References debugStringBacktrace(), E_USER_ERROR, UtilPath\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 153 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 164 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 373 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 175 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 274 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 186 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 318 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 263 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 406 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 329 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 285 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 427 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 307 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 197 of file class.root.php.
References getRootPath().
Referenced by getBatchLogFilePath(), getErrorLogFilePath(), getHomepageLogFilePath(), getLogFilePath(), getNssmLogFilePath(), getRegistryLogFilePath(), getServicesLogFilePath(), getStartupLogFilePath(), 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 395 of file class.root.php.
References getLogsPath().
| getProcessName | ( | ) |
Gets the name of the process.
Definition at line 416 of file class.root.php.
| getProcs | ( | ) |
Retrieves the list of processes.
Definition at line 108 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 351 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 129 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 340 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 296 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 208 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 362 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 219 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 230 of file class.root.php.
References getRootPath().
| getVhostsPath | ( | $aetrayPath = false | ) |
Gets the path to the virtual hosts directory.
| bool | $aetrayPath | Whether to format the path for AeTrayMenu. |
Definition at line 241 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 384 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 252 of file class.root.php.
References getRootPath().
Referenced by getHomepageFilePath().
| initErrorHandling | ( | ) |
Initializes error handling settings for the application.
Definition at line 84 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 118 of file class.root.php.
References $isRoot.
Referenced by __construct(), and register().
|
static |
Loads the apps components of the application.
Definition at line 493 of file class.root.php.
Referenced by register().
|
static |
Loads the binary components of the application.
Definition at line 475 of file class.root.php.
References $bearsamppBins.
Referenced by register().
|
static |
Loads the configuration settings of the application.
Definition at line 448 of file class.root.php.
References $bearsamppConfig.
Referenced by ActionSwitchVersion\processWindow(), and register().
|
static |
Loads the core components of the application.
Definition at line 439 of file class.root.php.
References $bearsamppCore.
Referenced by register().
|
static |
Loads the homepage settings of the application.
Definition at line 522 of file class.root.php.
References $bearsamppHomepage.
Referenced by register().
|
static |
Loads the language settings of the application.
Definition at line 457 of file class.root.php.
References $bearsamppLang.
Referenced by register().
|
static |
Loads the OpenSSL settings of the application.
Definition at line 466 of file class.root.php.
Referenced by register().
|
static |
Loads the registry settings of the application.
Definition at line 513 of file class.root.php.
Referenced by register().
|
static |
Loads the tools components of the application.
Definition at line 484 of file class.root.php.
Referenced by register().
|
static |
Loads the Winbinder extension if available.
Definition at line 502 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(), Log\init(), initErrorHandling(), isRoot(), loadApps(), loadBins(), loadConfig(), loadCore(), loadHomepage(), loadLang(), loadOpenSsl(), loadRegistry(), loadTools(), loadWinbinder(), and Log\separator().
| removeErrorHandling | ( | ) |
Removes the custom error handling, reverting to the default PHP error handling.
Definition at line 95 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.