Zend Framework
3.0
|
Defines an interface for classes that may register with the spl_autoload registry. More...
Public Member Functions | |
__construct ($options=null) | |
Constructor. | |
setOptions ($options) | |
Configure the autoloader. | |
autoload ($class) | |
Autoload a class. | |
register () | |
Register the autoloader with spl_autoload registry. | |
Defines an interface for classes that may register with the spl_autoload registry.
__construct | ( | $options = null | ) |
Constructor.
Allow configuration of the autoloader via the constructor.
null | array | Traversable | $options |
Implemented in ModuleAutoloader, StandardAutoloader, and ClassMapAutoloader.
autoload | ( | $class | ) |
Autoload a class.
$class |
Implemented in StandardAutoloader, ModuleAutoloader, and ClassMapAutoloader.
register | ( | ) |
Register the autoloader with spl_autoload registry.
Typically, the body of this will simply be: spl_autoload_register(array($this, 'autoload'));
Implemented in ModuleAutoloader, StandardAutoloader, and ClassMapAutoloader.
setOptions | ( | $options | ) |
Configure the autoloader.
In most cases, $options should be either an associative array or Traversable object.
array | Traversable | $options |
Implemented in ModuleAutoloader, StandardAutoloader, and ClassMapAutoloader.