| Recommend this page to a friend! |
| Classes of Abbey Sparrow | > | Abbey's Autoloader | > | Download .tar.gz .zip | > | > | > | |||||
|
| ||||||||||||||||||||||||||||||||||||||||||||
| Detailed description | ||
| The key part of this class is that it *autoloads based on scope* (EDITORS: Please do not delete this). What this means is that when an autoload happens, the loader will prefer the declarations that occurred in the file the autoload event happened in, and only afterwards default to the global scope. In the event a class definition cannot be loaded a dummy class is passed back into the execution context which throws an error during construction. This allows class definition errors to be caught as well as delivering their stacktrace. Because this scope allows the use of packages and namespaces (to a very limited extent), I have included an _import() function which uses a Java-like syntax, for those of us who prefer that. It currently enforces a '<name>.class.php' naming convention for autoloaded classes. |
| Groups | ||
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Language | Constructs to assist in the language control | View top rated classes |
| Applications | ||||||
No application links were specified for this class.
|
|||||||||||||||