\Zend_Loader_PluginLoader
Generic plugin class loader
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Loader_PluginLoader
implements
Zend_Loader_PluginLoader_Interface
{
- // members
- protected static $_includeFileCache;
- protected array $_loadedPluginPaths = ;
- protected array $_loadedPlugins = ;
- protected array $_prefixToPaths = ;
- protected static array $_staticLoadedPluginPaths = ;
- protected static array $_staticLoadedPlugins = ;
- protected static array $_staticPrefixToPaths = ;
- protected string|null $_useStaticRegistry = NULL;
- // methods
- public void __construct()
- protected string _formatPrefix()
- public Zend_Loader_PluginLoader addPrefixPath()
- public false|array getPaths()
- public bool clearPaths()
- public Zend_Loader_PluginLoader removePrefixPath()
- protected string _formatName()
- public Zend_Loader_PluginLoader isLoaded()
- public string|false getClassName()
- public string|false getClassPath()
- public string|false load()
- public static void setIncludeFileCache()
- public static string|null getIncludeFileCache()
- protected static void _appendIncFile()
Hierarchy
Implements
Members
protected
- $_includeFileCache
—
string
Class map cache file - $_loadedPluginPaths
—
array
Instance loaded plugin paths - $_loadedPlugins
—
array
Instance loaded plugins - $_prefixToPaths
—
array
Instance registry property - $_staticLoadedPluginPaths
—
array
Statically loaded plugin path mappings - $_staticLoadedPlugins
—
array
Statically loaded plugins - $_staticPrefixToPaths
—
array
Static registry property - $_useStaticRegistry
—
string|null
Whether to use a statically named registry for loading plugins
Methods
protected
- _appendIncFile() — Append an include_once statement to the class file cache
- _formatName() — Normalize plugin name
- _formatPrefix() — Format prefix for internal use
public
- __construct() — Constructor
- addPrefixPath() — Add prefixed paths to the registry of paths
- clearPaths() — Clear path stack
- getClassName() — Return full class name for a named plugin
- getClassPath() — Get path to plugin class
- getIncludeFileCache() — Retrieve class file cache path
- getPaths() — Get path stack
- isLoaded() — Whether or not a Plugin by a specific name is loaded
- load() — Load a plugin via the name provided
- removePrefixPath() — Remove a prefix (or prefixed-path) from the registry
- setIncludeFileCache() — Set path to class file cache