Loader/SplAutoloader.php

Show: PublicProtectedPrivateinherited
    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-2014 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-2014 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
    NameTypeDescription
    $optionsnull | array | \Traversable
    methodpublicautoload( $class) : mixed

    Autoload a class

    Parameters
    NameTypeDescription
    $class
    Returns
    TypeDescription
    mixedFalse [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
    NameTypeDescription
    $optionsarray | \Traversable
    Returns
    TypeDescription
    \SplAutoloader
    Documentation was generated by phpDocumentor 2.2.0 .