Class-map autoloader
Utilizes class-map files to lookup classfile locations.
package | Zend_Loader |
---|---|
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD {@link http://framework.zend.com/license/new-bsd} |
__construct(null|array|\Traversable $options = null
) : void
Create a new instance, and optionally configure the autoloader.
inherited_from | \Zend_Loader_SplAutoloader::__construct() |
---|
null
array
\Traversable
autoload(string $class) : void
inherited_from | \Zend_Loader_SplAutoloader::autoload() |
---|
string
concatPharParts(string $part) : boolean
string
boolean
getAutoloadMap() : array
array
realPharPath(string $path) : string
register() : void
Typically, the body of this will simply be:
spl_autoload_register(array($this, 'autoload'));
inherited_from | \Zend_Loader_SplAutoloader::register() |
---|
registerAutoloadMap($map) : \Zend_Loader_ClassMapAutoloader
An autoload map may be either an associative array, or a file returning an associative array.
An autoload map should be an associative array containing classname/file pairs.
\Zend_Loader_ClassMapAutoloader
registerAutoloadMaps(array $locations) : \Zend_Loader_ClassMapAutoloader
array
\Zend_Loader_ClassMapAutoloader
resolvePharParentPath(string $value, integer $key, array $parts) : void
string
integer
array
setOptions(array|\Traversable $options) : \Zend_Loader_ClassMapAutoloader
Proxies to \registerAutoloadMaps().
inherited_from | \Zend_Loader_SplAutoloader::setOptions() |
---|
array
\Traversable
\Zend_Loader_ClassMapAutoloader
loadMapFromFile(string $location) : \Zend_Loader_ClassMapAutoloader | mixed
If the map has been previously loaded, returns the current instance; otherwise, returns whatever was returned by calling include() on the location.
string
\Zend_Loader_Exception_InvalidArgumentException |
for nonexistent locations |
---|
\Zend_Loader_ClassMapAutoloader
mixed
$map : array
array()
$mapsLoaded : array
array()