Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Loader_ClassMapAutoloader Class Reference

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()
 

Constructor & Destructor Documentation

__construct (   $options = null)

Constructor.

Create a new instance, and optionally configure the autoloader.

Parameters
null | array | Traversable$options
Returns
void

Implements Zend_Loader_SplAutoloader.

Member Function Documentation

autoload (   $class)

Defined by Autoloadable.

Parameters
string$class
Returns
void

Implements Zend_Loader_SplAutoloader.

static concatPharParts (   $part)
static

Helper callback for filtering phar paths.

Parameters
string$part
Returns
bool
getAutoloadMap ( )

Retrieve current autoload map.

Returns
array
loadMapFromFile (   $location)
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.

Parameters
string$location
Returns
Zend_Loader_ClassMapAutoloader|mixed
Exceptions
Zend_Loader_Exception_InvalidArgumentExceptionfor nonexistent locations
static realPharPath (   $path)
static

Resolve the real_path() to a file within a phar.

See Also
https://bugs.php.net/bug.php?id=52769
Parameters
string$path
Returns
string
register ( )

Register the autoloader with spl_autoload registry.

Returns
void

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.

Parameters
string | array$location
Returns
Zend_Loader_ClassMapAutoloader
registerAutoloadMaps (   $locations)

Register many autoload maps at once.

Parameters
array$locations
Returns
Zend_Loader_ClassMapAutoloader
static resolvePharParentPath (   $value,
  $key,
$parts 
)
static

Helper callback to resolve a parent path in a Phar archive.

Parameters
string$value
int$key
array$parts
Returns
void
setOptions (   $options)

Configure the autoloader.

Proxies to registerAutoloadMaps().

Parameters
array | Traversable$options
Returns
Zend_Loader_ClassMapAutoloader

Implements Zend_Loader_SplAutoloader.

Member Data Documentation

$map = array()
protected
$mapsLoaded = array()
protected