Loader/SplAutoloader.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Loader
\Zend_Loader_SplAutoloader
Package: Zend\Loader
Parameters
Defines an interface for classes that may register with the spl_autoload registry
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods

__construct(null | array | \Traversable $options = null) : voidConstructor
Allow configuration of the autoloader via the constructor.
| Name | Type | Description |
|---|---|---|
| $options | null | array | \Traversable |

autoload( $class) : mixedAutoload a class
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $class |
| Type | Description |
|---|---|
| mixed | False [if unable to load $class] get_class($class) [if $class is successfully loaded] |

register() : voidRegister the autoloader with spl_autoload registry
Typically, the body of this will simply be:
spl_autoload_register(array($this, 'autoload'));