__construct()
autoload()
getAutoloadMap()
register()
registerAutoloadMap()
registerAutoloadMaps()
setOptions()
loadMapFromFile()
$map
$mapsLoaded
Class-map autoloader
Utilizes class-map files to lookup classfile locations.
| catebory | ZendX |
|---|---|
| package | ZendX_Loader |
| copyright | Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) |
| license | New BSD {@link http://framework.zend.com/license/new-bsd} |
__construct(null | array | \Traversable $options) : void
Create a new instance, and optionally configure the autoloader.
nullarray\Traversable
autoload(string $class) : void
string
getAutoloadMap() : array
arrayregister() : void
Typically, the body of this will simply be:
spl_autoload_register(array($this, 'autoload'));
registerAutoloadMap($map) : \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.
\ClassMapAutoloaderregisterAutoloadMaps(array $locations) : \ClassMapAutoloader
array
\ClassMapAutoloadersetOptions(array | \Traversable $options) : \ClassMapAutoloader
Proxies to registerAutoloadMaps().
array\Traversable
\ClassMapAutoloaderloadMapFromFile(string $location) : \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
\Exception\InvalidArgumentException |
for nonexistent locations |
|---|
\ClassMapAutoloadermixed
$map : array
$mapsLoaded : array