Loader/ClassMapAutoloader.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Loader  

\Zend_Loader_ClassMapAutoloader

Package: Zend_Loader
Class-map autoloader
Utilizes class-map files to lookup classfile locations.
Implements
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD {@link http://framework.zend.com/license/new-bsd}  

Properties

>VPropertyprotectedarray $map = array()
Class name/filename map
Default valuearray()Details
Type
array
>VPropertyprotectedarray $mapsLoaded = array()
Registry of map files that have already been loaded
Default valuearray()Details
Type
array

Methods

methodpublic__construct(null | array | \Traversable $options = null) : void

Constructor

Create a new instance, and optionally configure the autoloader.
Parameters
NameTypeDescription
$optionsnull | array | \Traversable
methodpublicautoload(string $class) : void

Defined by Autoloadable

Parameters
NameTypeDescription
$classstring
methodpublicconcatPharParts(string $part) : bool
static

Helper callback for filtering phar paths

Parameters
NameTypeDescription
$partstring
Returns
TypeDescription
bool
methodpublicgetAutoloadMap() : array

Retrieve current autoload map

Returns
TypeDescription
array
methodprotectedloadMapFromFile(string $location) : \Zend_Loader_ClassMapAutoloader | mixed

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
NameTypeDescription
$locationstring
Returns
TypeDescription
\Zend_Loader_ClassMapAutoloader | mixed
Throws
ExceptionDescription
\Zend_Loader_Exception_InvalidArgumentExceptionfor nonexistent locations
methodpublicrealPharPath(string $path) : string
static

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

Parameters
NameTypeDescription
$pathstring
Returns
TypeDescription
string
Details
See
 
methodpublicregister() : void

Register the autoloader with spl_autoload registry

methodpublicregisterAutoloadMap( $map) : \Zend_Loader_ClassMapAutoloader

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
NameTypeDescription
$map
Returns
TypeDescription
\Zend_Loader_ClassMapAutoloader
methodpublicregisterAutoloadMaps(array $locations) : \Zend_Loader_ClassMapAutoloader

Register many autoload maps at once

Parameters
NameTypeDescription
$locationsarray
Returns
TypeDescription
\Zend_Loader_ClassMapAutoloader
methodpublicresolvePharParentPath(string $value, int $key, array $parts) : void
static

Helper callback to resolve a parent path in a Phar archive

Parameters
NameTypeDescription
$valuestring
$keyint
$partsarray
methodpublicsetOptions(array | \Traversable $options) : \Zend_Loader_ClassMapAutoloader

Configure the autoloader

Proxies to {@link registerAutoloadMaps()}.
Parameters
NameTypeDescription
$optionsarray | \Traversable
Returns
TypeDescription
\Zend_Loader_ClassMapAutoloader
Documentation was generated by phpDocumentor 2.2.0 .