Plugin Class Loader implementation for HTTP headers

package Default
inherited_from \Zend\Loader\PluginClassLoader

 Methods

Constructor

__construct(null|array|\Traversable $map = null
Inherited

Parameters

$map

nullarray\Traversable

If provided, seeds the loader with a map

Add a static map of plugins

addStaticMap(null|array|\Traversable $map) : void
InheritedStatic

A null value will clear the static map.

Parameters

$map

nullarray\Traversable

Exceptions

\Zend\Loader\Exception\InvalidArgumentException

Return full class name for a named helper

getClassName(string $name) : string | false
Inherited

Parameters

$name

string

Returns

stringfalse

Defined by IteratorAggregate

getIterator() : \ArrayIterator
Inherited

Returns an instance of ArrayIterator, containing a map of all plugins

Returns

\ArrayIterator

Get a list of all registered plugins

getRegisteredPlugins() : array | \Traversable
Inherited
inherited_from \Zend\Loader\PluginClassLocator::getRegisteredPlugins()

Returns

array\Traversable

Whether or not a plugin by a specific name has been registered

isLoaded(string $name) : boolean
Inherited

Parameters

$name

string

Returns

boolean

Load a helper via the name provided

load(string $name) : string | false
Inherited

Parameters

$name

string

Returns

stringfalse

Register a class to a given short name

registerPlugin(string $shortName, string $className) : \Zend\Loader\PluginClassLoader
Inherited
inherited_from \Zend\Loader\PluginClassLocator::registerPlugin()

Parameters

$shortName

string

$className

string

Returns

\Zend\Loader\PluginClassLoader

Register many plugins at once

registerPlugins(string|array|\Traversable $map) : \Zend\Loader\PluginClassLoader
Inherited

If $map is a string, assumes that the map is the class name of a Traversable object (likely a ShortNameLocator); it will then instantiate this class and use it to register plugins.

If $map is an array or Traversable object, it will iterate it to register plugin names/classes.

For all other arguments, or if the string $map is not a class or not a Traversable class, an exception will be raised.

Parameters

$map

stringarray\Traversable

Exceptions

\Zend\Loader\Exception\InvalidArgumentException

Returns

\Zend\Loader\PluginClassLoader

Unregister a short name lookup

unregisterPlugin(mixed $shortName) : \Zend\Loader\PluginClassLoader
Inherited
inherited_from \Zend\Loader\PluginClassLocator::unregisterPlugin()

Parameters

$shortName

mixed

Returns

\Zend\Loader\PluginClassLoader

 Properties

 

List of plugin name => class name pairs

$plugins : array

Default

array('accept' => 'Zend\Http\Header\Accept', 'acceptcharset' => 'Zend\Http\Header\AcceptCharset', 'acceptencoding' => 'Zend\Http\Header\AcceptEncoding', 'acceptlanguage' => 'Zend\Http\Header\AcceptLanguage', 'acceptranges' => 'Zend\Http\Header\AcceptRanges', 'age' => 'Zend\Http\Header\Age', 'allow' => 'Zend\Http\Header\Allow', 'authenticationinfo' => 'Zend\Http\Header\AuthenticationInfo', 'authorization' => 'Zend\Http\Header\Authorization', 'cachecontrol' => 'Zend\Http\Header\CacheControl', 'connection' => 'Zend\Http\Header\Connection', 'contentdisposition' => 'Zend\Http\Header\ContentDisposition', 'contentencoding' => 'Zend\Http\Header\ContentEncoding', 'contentlanguage' => 'Zend\Http\Header\ContentLanguage', 'contentlength' => 'Zend\Http\Header\ContentLength', 'contentlocation' => 'Zend\Http\Header\ContentLocation', 'contentmd5' => 'Zend\Http\Header\ContentMD5', 'contentrange' => 'Zend\Http\Header\ContentRange', 'contenttransferencoding' => 'Zend\Http\Header\ContentTransferEncoding', 'contenttype' => 'Zend\Http\Header\ContentType', 'cookie' => 'Zend\Http\Header\Cookie', 'date' => 'Zend\Http\Header\Date', 'etag' => 'Zend\Http\Header\Etag', 'expect' => 'Zend\Http\Header\Expect', 'expires' => 'Zend\Http\Header\Expires', 'from' => 'Zend\Http\Header\From', 'host' => 'Zend\Http\Header\Host', 'ifmatch' => 'Zend\Http\Header\IfMatch', 'ifmodifiedsince' => 'Zend\Http\Header\IfModifiedSince', 'ifnonematch' => 'Zend\Http\Header\IfNoneMatch', 'ifrange' => 'Zend\Http\Header\IfRange', 'ifunmodifiedsince' => 'Zend\Http\Header\IfUnmodifiedSince', 'keepalive' => 'Zend\Http\Header\KeepAlive', 'lastmodified' => 'Zend\Http\Header\LastModified', 'location' => 'Zend\Http\Header\Location', 'maxforwards' => 'Zend\Http\Header\MaxForwards', 'origin' => 'Zend\Http\Header\Origin', 'pragma' => 'Zend\Http\Header\Pragma', 'proxyauthenticate' => 'Zend\Http\Header\ProxyAuthenticate', 'proxyauthorization' => 'Zend\Http\Header\ProxyAuthorization', 'range' => 'Zend\Http\Header\Range', 'referer' => 'Zend\Http\Header\Referer', 'refresh' => 'Zend\Http\Header\Refresh', 'retryafter' => 'Zend\Http\Header\RetryAfter', 'server' => 'Zend\Http\Header\Server', 'setcookie' => 'Zend\Http\Header\SetCookie', 'te' => 'Zend\Http\Header\TE', 'trailer' => 'Zend\Http\Header\Trailer', 'transferencoding' => 'Zend\Http\Header\TransferEncoding', 'upgrade' => 'Zend\Http\Header\Upgrade', 'useragent' => 'Zend\Http\Header\UserAgent', 'vary' => 'Zend\Http\Header\Vary', 'via' => 'Zend\Http\Header\Via', 'warning' => 'Zend\Http\Header\Warning', 'wwwauthenticate' => 'Zend\Http\Header\WWWAuthenticate')
inherited_from \Zend\Loader\PluginClassLoader::plugins
 

List of plugin name => class name pairs

$plugins : array

Default

array()
 

Static map allow global seeding of plugin loader

$staticMap : array

Default

array()
Static