[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Loader/ -> PluginLoader.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 484 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Loader_PluginLoader:: (14 methods):
  __construct()
  _formatPrefix()
  addPrefixPath()
  getPaths()
  clearPaths()
  removePrefixPath()
  _formatName()
  isLoaded()
  getClassName()
  getClassPath()
  load()
  setIncludeFileCache()
  getIncludeFileCache()
  _appendIncFile()


Class: Zend_Loader_PluginLoader  - X-Ref

Generic plugin class loader

__construct(Array $prefixToPaths = array()   X-Ref
Constructor

param: array $prefixToPaths
param: string $staticRegistryName OPTIONAL

_formatPrefix($prefix)   X-Ref
Format prefix for internal use

param: string $prefix
return: string

addPrefixPath($prefix, $path)   X-Ref
Add prefixed paths to the registry of paths

param: string $prefix
param: string $path
return: Zend_Loader_PluginLoader

getPaths($prefix = null)   X-Ref
Get path stack

param: string $prefix
return: false|array False if prefix does not exist, array otherwise

clearPaths($prefix = null)   X-Ref
Clear path stack

param: string $prefix
return: bool False only if $prefix does not exist

removePrefixPath($prefix, $path = null)   X-Ref
Remove a prefix (or prefixed-path) from the registry

param: string $prefix
param: string $path OPTIONAL
return: Zend_Loader_PluginLoader

_formatName($name)   X-Ref
Normalize plugin name

param: string $name
return: string

isLoaded($name)   X-Ref
Whether or not a Plugin by a specific name is loaded

param: string $name
return: Zend_Loader_PluginLoader

getClassName($name)   X-Ref
Return full class name for a named plugin

param: string $name
return: string|false False if class not found, class name otherwise

getClassPath($name)   X-Ref
Get path to plugin class

param: mixed $name
return: string|false False if not found

load($name, $throwExceptions = true)   X-Ref
Load a plugin via the name provided

param: string $name
param: bool $throwExceptions Whether or not to throw exceptions if the
return: string|false Class name of loaded class; false if $throwExceptions

setIncludeFileCache($file)   X-Ref
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.

param: string $file
return: void

getIncludeFileCache()   X-Ref
Retrieve class file cache path

return: string|null

_appendIncFile($incFile)   X-Ref
Append an include_once statement to the class file cache

param: string $incFile
return: void



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1