|
Moodle
2.2.1
http://www.collinsharper.com
|


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 472 of file PluginLoader.php.

| _formatName | ( | $ | name | ) | [protected] |
Normalize plugin name
| string | $name |
Definition at line 277 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 145 of file PluginLoader.php.


| clearPaths | ( | $ | prefix = null | ) |
Clear path stack
| string | $prefix |
Definition at line 206 of file PluginLoader.php.

| getClassName | ( | $ | name | ) |
Return full class name for a named plugin
| string | $name |
Implements Zend_Loader_PluginLoader_Interface.
Definition at line 304 of file PluginLoader.php.


| getClassPath | ( | $ | name | ) |
Get path to plugin class
| mixed | $name |
Definition at line 324 of file PluginLoader.php.

| static getIncludeFileCache | ( | ) | [static] |
Retrieve class file cache path
Definition at line 461 of file PluginLoader.php.

| getPaths | ( | $ | prefix = null | ) |
Get path stack
| string | $prefix |
Definition at line 174 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 288 of file PluginLoader.php.


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 360 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 243 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 433 of file PluginLoader.php.
$_includeFileCache [static, protected] |
Definition at line 44 of file PluginLoader.php.
$_loadedPluginPaths = array() [protected] |
Definition at line 51 of file PluginLoader.php.
$_loadedPlugins = array() [protected] |
Definition at line 58 of file PluginLoader.php.
$_prefixToPaths = array() [protected] |
Definition at line 65 of file PluginLoader.php.
$_staticLoadedPluginPaths = array() [static, protected] |
Definition at line 72 of file PluginLoader.php.
$_staticLoadedPlugins = array() [static, protected] |
Definition at line 79 of file PluginLoader.php.
$_staticPrefixToPaths = array() [static, protected] |
Definition at line 86 of file PluginLoader.php.
$_useStaticRegistry = null [protected] |
Definition at line 93 of file PluginLoader.php.