Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Loader / SplAutoloader.php
blob214066b698f1e23c23895ea7dcd2594f9b18d12d
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Loader;
12 use Traversable;
14 if (interface_exists('Zend\Loader\SplAutoloader')) return;
16 /**
17 * Defines an interface for classes that may register with the spl_autoload
18 * registry
20 interface SplAutoloader
22 /**
23 * Constructor
25 * Allow configuration of the autoloader via the constructor.
27 * @param null|array|Traversable $options
29 public function __construct($options = null);
31 /**
32 * Configure the autoloader
34 * In most cases, $options should be either an associative array or
35 * Traversable object.
37 * @param array|Traversable $options
38 * @return SplAutoloader
40 public function setOptions($options);
42 /**
43 * Autoload a class
45 * @param $class
46 * @return mixed
47 * False [if unable to load $class]
48 * get_class($class) [if $class is successfully loaded]
50 public function autoload($class);
52 /**
53 * Register the autoloader with spl_autoload registry
55 * Typically, the body of this will simply be:
56 * <code>
57 * spl_autoload_register(array($this, 'autoload'));
58 * </code>
60 * @return void
62 public function register();