Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Zend_Loader_SplAutoloader Interface Reference
Inheritance diagram for Zend_Loader_SplAutoloader:
Zend_Loader_ClassMapAutoloader Zend_Loader_StandardAutoloader

Public Member Functions

 __construct ($options=null)
 
 setOptions ($options)
 
 autoload ($class)
 
 register ()
 

Detailed Description

Definition at line 31 of file SplAutoloader.php.

Constructor & Destructor Documentation

◆ __construct()

__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()

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 ( )

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()

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.


The documentation for this interface was generated from the following file: