[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/ -> pluginutils.php (summary)

Utilities for handling plugins

Author: Andreas Gohr
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
File Size: 100 lines (3 kb)
Included or required: 6 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  plugin_list()
  plugin_load()
  plugin_isdisabled()
  plugin_enable()
  plugin_disable()

Functions
Functions that are not part of a class:

plugin_list($type='',$all=false)   X-Ref
Returns a list of available plugins of given type

author: Andreas Gohr <andi@splitbrain.org>
param: $type  string, plugin_type name;
param: $all   bool;
return: array of plugin names

plugin_load($type,$name,$new=false)   X-Ref
Loads the given plugin and creates an object of it

author: Andreas Gohr <andi@splitbrain.org>
param: $type string     type of plugin to load
param: $name string     name of the plugin to load
param: $new  bool       true to return a new instance of the plugin, false to use an already loaded instance
return: objectreference  the plugin object or null on failure

plugin_isdisabled($name)   X-Ref
No description

plugin_enable($name)   X-Ref
No description

plugin_disable($name)   X-Ref
No description



Generated: Tue Dec 2 01:30:01 2008 Cross-referenced by PHPXref 0.7