1123. Function

1123.1. Zend\Loader\__construct

ZendLoader__construct()

Constructor

Allow configuration of the autoloader via the constructor.

Parameters:null|array|Traversable

1124. Function

1124.1. Zend\Loader\setOptions

ZendLoadersetOptions()

Configure the autoloader

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

Parameters:array|Traversable
Return type:SplAutoloader

1125. Function

1125.1. Zend\Loader\autoload

ZendLoaderautoload()

Autoload a class

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

1126. Function

1126.1. Zend\Loader\register

ZendLoaderregister()

Register the autoloader with spl_autoload registry

Typically, the body of this will simply be: <code> spl_autoload_register(array($this, ‘autoload’)); </code>

Return type:void

Project Versions

Table Of Contents

Previous topic

1120. Function

Next topic

1127. Class

This Page