Zend Framework  1.12
Public Member Functions | List of all members
Zend_Loader_SplAutoloader Interface Reference

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.
 

Constructor & Destructor Documentation

__construct (   $options = null)

Constructor.

Allow configuration of the autoloader via the constructor.

Parameters
null | array | Traversable$options
Returns
void

Implemented in Zend_Loader_StandardAutoloader, and Zend_Loader_ClassMapAutoloader.

Member Function Documentation

autoload (   $class)

Autoload a class.

Parameters
$class
Returns
mixed False [if unable to load $class] get_class($class) [if $class is successfully loaded]

Implemented in Zend_Loader_StandardAutoloader, and Zend_Loader_ClassMapAutoloader.

register ( )

Register the autoloader with spl_autoload registry.

Typically, the body of this will simply be: spl_autoload_register(array($this, 'autoload'));

Returns
void

Implemented in Zend_Loader_StandardAutoloader, and Zend_Loader_ClassMapAutoloader.

setOptions (   $options)

Configure the autoloader.

In most cases, $options should be either an associative array or Traversable object.

Parameters
array | Traversable$options
Returns
SplAutoloader

Implemented in Zend_Loader_StandardAutoloader, and Zend_Loader_ClassMapAutoloader.