Plugin Class Loader implementation for HTTP headers

 Methods

Constructor

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

inherited_from \Zend\Loader\PluginClassLoader::__construct()

Parameters

$map

nullarray\Traversable

If provided, seeds the loader with a map

Add a static map of plugins

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

A null value will clear the static map.

inherited_from \Zend\Loader\PluginClassLoader::addStaticMap()

Parameters

$map

nullarray\Traversable

Exceptions

\Zend\Loader\Exception\InvalidArgumentException

Return full class name for a named helper

getClassName(string $name) : string | false
Inherited

inherited_from \Zend\Loader\PluginClassLoader::getClassName()

Parameters

$name

string

Returns

stringfalse

Defined by IteratorAggregate

getIterator() : \ArrayIterator
Inherited

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

inherited_from \Zend\Loader\PluginClassLoader::getIterator()

Returns

Get a list of all registered plugins

getRegisteredPlugins() : array | \Traversable
Inherited

inherited_from \Zend\Loader\PluginClassLoader::getRegisteredPlugins()

Returns

array\Traversable

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

isLoaded(string $name) : bool
Inherited

inherited_from \Zend\Loader\PluginClassLoader::isLoaded()

Parameters

$name

string

Returns

bool

Load a helper via the name provided

load(string $name) : string | false
Inherited

inherited_from \Zend\Loader\PluginClassLoader::load()

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\PluginClassLoader::registerPlugin()

Parameters

$shortName

string

$className

string

Returns

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.

inherited_from \Zend\Loader\PluginClassLoader::registerPlugins()

Parameters

$map

stringarray\Traversable

Exceptions

\Zend\Loader\Exception\InvalidArgumentException

Returns

Unregister a short name lookup

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

inherited_from \Zend\Loader\PluginClassLoader::unregisterPlugin()

Parameters

$shortName

mixed

Returns

 Properties

 

List of plugin name => class name pairs

$plugins : array

 

Static map allow global seeding of plugin loader

$staticMap : array
Inherited

inherited_from \Zend\Loader\PluginClassLoader::$$staticMap