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('bcc' => 'Zend\Mail\Header\Bcc', 'cc' => 'Zend\Mail\Header\Cc', 'contenttype' => 'Zend\Mail\Header\ContentType', 'content_type' => 'Zend\Mail\Header\ContentType', 'content-type' => 'Zend\Mail\Header\ContentType', 'contenttransferencoding' => 'Zend\Mail\Header\ContentTransferEncoding', 'content_transfer_encoding' => 'Zend\Mail\Header\ContentTransferEncoding', 'content-transfer-encoding' => 'Zend\Mail\Header\ContentTransferEncoding', 'date' => 'Zend\Mail\Header\Date', 'from' => 'Zend\Mail\Header\From', 'message-id' => 'Zend\Mail\Header\MessageId', 'mimeversion' => 'Zend\Mail\Header\MimeVersion', 'mime_version' => 'Zend\Mail\Header\MimeVersion', 'mime-version' => 'Zend\Mail\Header\MimeVersion', 'received' => 'Zend\Mail\Header\Received', 'replyto' => 'Zend\Mail\Header\ReplyTo', 'reply_to' => 'Zend\Mail\Header\ReplyTo', 'reply-to' => 'Zend\Mail\Header\ReplyTo', 'sender' => 'Zend\Mail\Header\Sender', 'subject' => 'Zend\Mail\Header\Subject', 'to' => 'Zend\Mail\Header\To')
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