2024.8.23
|
Public Member Functions | |
__construct () | |
load ($class) | |
register () | |
unregister () | |
Class Autoloader
This class handles the autoloading of classes within the Bearsampp application. It registers itself with the SPL autoload stack and loads classes based on naming conventions.
Definition at line 16 of file class.autoloader.php.
Autoloader::__construct | ( | ) |
Autoloader constructor.
Initializes the Autoloader object.
Definition at line 23 of file class.autoloader.php.
Autoloader::load | ( | $class | ) |
Loads the specified class file based on the class name.
string | $class | The name of the class to load. |
Definition at line 33 of file class.autoloader.php.
References $bearsamppRoot, and Util\startWith().
Autoloader::register | ( | ) |
Registers the autoloader with the SPL autoload stack.
Definition at line 74 of file class.autoloader.php.
Autoloader::unregister | ( | ) |
Unregisters the autoloader from the SPL autoload stack.
Definition at line 84 of file class.autoloader.php.