Source of file SplAutoloader.php
Size: 1,549 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Loader/SplAutoloader.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Loader; use Traversable; if (interface_exists('Zend\Loader\SplAutoloader')) return; /** * Defines an interface for classes that may register with the spl_autoload * registry */ interface SplAutoloader { /** * Constructor * * Allow configuration of the autoloader via the constructor. * * @param null|array|Traversable $options */ public function __construct($options = null); /** * Configure the autoloader * * In most cases, $options should be either an associative array or * Traversable object. * * @param array|Traversable $options * @return SplAutoloader */ public function setOptions($options); /** * Autoload a class * * @param $class * @return mixed * False [if unable to load $class] * get_class($class) [if $class is successfully loaded] */ public function autoload($class); /** * Register the autoloader with spl_autoload registry * * Typically, the body of this will simply be: * <code> * spl_autoload_register(array($this, 'autoload')); * </code> * * @return void */ public function register(); } |