Public Member Functions | |
__construct (Array $prefixToPaths=array(), $staticRegistryName=null) | |
addPrefixPath ($prefix, $path) | |
getPaths ($prefix=null) | |
clearPaths ($prefix=null) | |
removePrefixPath ($prefix, $path=null) | |
isLoaded ($name) | |
getClassName ($name) | |
getClassPath ($name) | |
load ($name, $throwExceptions=true) | |
Static Public Member Functions | |
static | setIncludeFileCache ($file) |
static | getIncludeFileCache () |
Protected Member Functions | |
_formatPrefix ($prefix) | |
_formatName ($name) | |
Static Protected Member Functions | |
static | _appendIncFile ($incFile) |
Protected Attributes | |
$_loadedPluginPaths = array() | |
$_loadedPlugins = array() | |
$_prefixToPaths = array() | |
$_useStaticRegistry = null | |
Static Protected Attributes | |
static | $_includeFileCache |
static | $_staticLoadedPluginPaths = array() |
static | $_staticLoadedPlugins = array() |
static | $_staticPrefixToPaths = array() |
Definition at line 38 of file PluginLoader.php.
__construct | ( | Array $ | prefixToPaths = array() , |
$ | staticRegistryName = null |
||
) |
Constructor
array | $prefixToPaths | |
string | $staticRegistryName | OPTIONAL |
Definition at line 101 of file PluginLoader.php.
static _appendIncFile | ( | $ | incFile ) | [static, protected] |
Append an include_once statement to the class file cache
string | $incFile |
Definition at line 468 of file PluginLoader.php.
_formatName | ( | $ | name ) | [protected] |
Normalize plugin name
string | $name |
Definition at line 271 of file PluginLoader.php.
_formatPrefix | ( | $ | prefix ) | [protected] |
Format prefix for internal use
string | $prefix |
Definition at line 124 of file PluginLoader.php.
addPrefixPath | ( | $ | prefix, |
$ | path | ||
) |
Add prefixed paths to the registry of paths
string | $prefix | |
string | $path |
Implements Zend_Loader_PluginLoader_Interface.
Definition at line 139 of file PluginLoader.php.
clearPaths | ( | $ | prefix = null ) |
Clear path stack
string | $prefix |
Definition at line 200 of file PluginLoader.php.
getClassName | ( | $ | name ) |
Return full class name for a named plugin
string | $name |
Implements Zend_Loader_PluginLoader_Interface.
Definition at line 298 of file PluginLoader.php.
getClassPath | ( | $ | name ) |
Get path to plugin class
mixed | $name |
Definition at line 318 of file PluginLoader.php.
static getIncludeFileCache | ( | ) | [static] |
getPaths | ( | $ | prefix = null ) |
Get path stack
string | $prefix |
Definition at line 168 of file PluginLoader.php.
isLoaded | ( | $ | name ) |
Whether or not a Plugin by a specific name is loaded
string | $name |
Implements Zend_Loader_PluginLoader_Interface.
Definition at line 282 of file PluginLoader.php.
load | ( | $ | name, |
$ | throwExceptions = true |
||
) |
Load a plugin via the name provided
string | $name | |
bool | $throwExceptions | Whether or not to throw exceptions if the class is not resolved |
Zend_Loader_Exception | if class not found |
Definition at line 354 of file PluginLoader.php.
removePrefixPath | ( | $ | prefix, |
$ | path = null |
||
) |
Remove a prefix (or prefixed-path) from the registry
string | $prefix | |
string | $path | OPTIONAL |
Implements Zend_Loader_PluginLoader_Interface.
Definition at line 237 of file PluginLoader.php.
static setIncludeFileCache | ( | $ | file ) | [static] |
Set 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.
string | $file |
Zend_Loader_PluginLoader_Exception | if file is not writeable or path does not exist |
Definition at line 429 of file PluginLoader.php.