-
Notifications
You must be signed in to change notification settings - Fork 0
Box Autoloader
Travis edited this page Mar 13, 2014
·
6 revisions
Autoloader - The Frood autoloader.
.. Raped.
- Class name: Autoloader
- Namespace: Box
private string $_classPath
- Visibility: private
mixed Box\Autoloader::\Box\Autoloader::__construct()()
Construct a new Box autoloader.
It will automatically register itself.
- Visibility: public
mixed Box\Autoloader::\Box\Autoloader::autoload()(string $name)
Attempts to load the given class.
- Visibility: public
- $name string - <p>The name of the class to load.</p>
mixed Box\Autoloader::\Box\Autoloader::unregister()()
Unregister the autoloader. Persist and clean memory cache.
- Visibility: public
mixed Box\Autoloader::\Box\Autoloader::_register()()
Register the autoloader.
- Visibility: private
null|string Box\Autoloader::\Box\Autoloader::_classNameToPath()(string $name)
Convert a class name to a path to a file containing the class definition.
Used by the autoloader.
- Visibility: private
- $name string - <p>The name of the class.</p>
null|string Box\Autoloader::\Box\Autoloader::_searchFiles()(string $classPath, string $regex)
Internally used method. Used by _classNameToPath.
- Visibility: private
- $classPath string - <p>The directory to search in.</p>
- $regex string - <p>The regular expression to match on the full path.</p>
array Box\Autoloader::\Box\Autoloader::_getFiles()(string $classPath, array $files)
Internally used method. Used by addClassPath to cache all files in the newly added class path.
- Visibility: private
- This method is static.
- $classPath string - <p>The directory to search in.</p>
- $files array