System:Bootstrap
From Aspen Documentation
The Bootstrap class contains all of the core framework startup logic. It's responsible for loading global configurations, loading and instantiating all system classes, loading the current and required modules, etc.
Many system classes utilize methods and members from within this class, as it's essentially the core of the framework. A few important and useful methods developers may often utilize are below.
| Function | Description |
|---|---|
| awaitingUpgrade | Returns boolean if BUILD constant is higher than latest upgrade_history value. |
| callPluginHook | Accepts a string name of a plugin hook. Any plugins that are attached to that particular hook will be called. |
| checkDbConnection | Returns a true/false value if the database connection is open and working properly. |
| checkUserConfigExists | Verifies that the user configuration file exists. |
| config | Returns the value of a configuration setting. |
| getConfig | Returns the entire configuration array. |
| getInstalledModuleGuids | Returns an array of GUIDs of all currently installed modules. |
| getLoadedLibraries | Returns an array of all currently loaded system classes. |
| getModuleRegistry | Returns the entire module registry object (all modules). |
| isInstalled | Returns boolean if user config exists, database connection was made, and we can query the modules table. |
| isLibraryLoaded | Returns boolean if a system class is currently loaded. |
| loadModule | Loads a module using it's GUID. May be used to manually load a module for support purposes. |
| moduleRegistry | Returns the module registry object for a module. You may pass either the module name or the GUID. |
| requireLogin | Whether or not the current interface requires login. |
| setConfig | Set a configuration parameter manually from within your application code. |
| versionCompare | Compared two version strings for similarity. |