Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=null) | |
Constructor. | |
setOptions ($options) | |
Configure the autoloader. | |
registerAutoloadMap ($map) | |
Register an autoload map. | |
registerAutoloadMaps ($locations) | |
Register many autoload maps at once. | |
getAutoloadMap () | |
Retrieve current autoload map. | |
autoload ($class) | |
Defined by Autoloadable. | |
register () | |
Register the autoloader with spl_autoload registry. | |
Static Public Member Functions | |
static | realPharPath ($path) |
Resolve the real_path() to a file within a phar. | |
static | concatPharParts ($part) |
Helper callback for filtering phar paths. | |
static | resolvePharParentPath ($value, $key, &$parts) |
Helper callback to resolve a parent path in a Phar archive. | |
Protected Member Functions | |
loadMapFromFile ($location) | |
Load a map from a file. | |
Protected Attributes | |
$mapsLoaded = array() | |
$map = array() | |
__construct | ( | $options = null | ) |
Constructor.
Create a new instance, and optionally configure the autoloader.
null | array | Traversable | $options |
Implements Zend_Loader_SplAutoloader.
autoload | ( | $class | ) |
|
static |
Helper callback for filtering phar paths.
string | $part |
getAutoloadMap | ( | ) |
Retrieve current autoload map.
|
protected |
Load a map from a file.
If the map has been previously loaded, returns the current instance; otherwise, returns whatever was returned by calling include() on the location.
string | $location |
Zend_Loader_Exception_InvalidArgumentException | for nonexistent locations |
|
static |
Resolve the real_path() to a file within a phar.
string | $path |
register | ( | ) |
Register the autoloader with spl_autoload registry.
Implements Zend_Loader_SplAutoloader.
registerAutoloadMap | ( | $map | ) |
Register an autoload map.
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.
string | array | $location |
registerAutoloadMaps | ( | $locations | ) |
Register many autoload maps at once.
array | $locations |
|
static |
Helper callback to resolve a parent path in a Phar archive.
string | $value | |
int | $key | |
array | $parts |
setOptions | ( | $options | ) |
Configure the autoloader.
Proxies to registerAutoloadMaps().
array | Traversable | $options |
Implements Zend_Loader_SplAutoloader.
|
protected |
|
protected |