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.
Generic plugin class loader
string $_includeFileCache = ''Class map cache file
Detailsarray $_loadedPluginPaths = 'array'Instance loaded plugin paths
Detailsarray $_loadedPlugins = 'array'Instance loaded plugins
Detailsarray $_prefixToPaths = 'array'Instance registry property
Detailsarray $_staticLoadedPluginPaths = 'array'Statically loaded plugin path mappings
Detailsarray $_staticLoadedPlugins = 'array'Statically loaded plugins
Detailsarray $_staticPrefixToPaths = 'array'Static registry property
Detailsstring|null $_useStaticRegistry = 'null'Whether to use a statically named registry for loading plugins
Details__construct(
array $prefixToPaths
=
array, string $staticRegistryName
=
null
)
:
Constructor
Details_appendIncFile(
string $incFile
)
:
voidAppend an include_once statement to the class file cache
Details_formatName(
string $name
)
:
stringNormalize plugin name
Details_formatPrefix(
string $prefix
)
:
stringFormat prefix for internal use
DetailsaddPrefixPath(
string $prefix, string $path
)
:
Zend_Loader_PluginLoaderAdd prefixed paths to the registry of paths
DetailsclearPaths(
string $prefix
=
null
)
:
boolClear path stack
DetailsgetClassName(
string $name
)
:
string|falseReturn full class name for a named plugin
DetailsgetClassPath(
mixed $name
)
:
string|falseGet path to plugin class
DetailsgetIncludeFileCache(
)
:
string|nullRetrieve class file cache path
DetailsgetPaths(
string $prefix
=
null
)
:
false|arrayGet path stack
DetailsisLoaded(
string $name
)
:
Zend_Loader_PluginLoaderWhether or not a Plugin by a specific name is loaded
Detailsload(
string $name, bool $throwExceptions
=
true
)
:
string|falseLoad a plugin via the name provided
DetailsremovePrefixPath(
string $prefix, string $path
=
null
)
:
Zend_Loader_PluginLoaderRemove a prefix (or prefixed-path) from the registry
DetailssetIncludeFileCache(
string $file
)
:
voidSet path to class file cache
Specify a path to a file that will add include_once statements for each plugin class loaded. This is an opt-in feature for performance purposes.
Details