Loader/SplAutoloader.php

Show: inherited
    Table of Contents

    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

    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

    methodpublic__construct(null | array | \Traversable $options = null) : void

    Constructor

    Allow configuration of the autoloader via the constructor.

    Parameters
    Name Type Description
    $options null | array | \Traversable
    methodpublicautoload( $class) : mixed

    Autoload a class

    Parameters
    Name Type Description
    $class
    Returns
    Type Description
    mixed False [if unable to load $class] get_class($class) [if $class is successfully loaded]
    methodpublicregister() : void

    Register the autoloader with spl_autoload registry

    Typically, the body of this will simply be:

    spl_autoload_register(array($this, 'autoload'));
    
    methodpublicsetOptions(array | \Traversable $options) : \SplAutoloader

    Configure the autoloader

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

    Parameters
    Name Type Description
    $options array | \Traversable
    Returns
    Type Description
    \SplAutoloader
    Documentation was generated by phpDocumentor 2.0.0a8.