| [ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
Class to encapsulate access to dokuwiki plugins
| Author: | Christopher Smith |
| License: | GPL 2 (http://www.gnu.org/licenses/gpl.html) |
| File Size: | 347 lines (13 kb) |
| Included or required: | 0 times |
| Referenced: | 1 time |
| Includes or requires: | 0 files |
Doku_Plugin_Controller:: (16 methods):
__construct()
getList()
load()
isdisabled()
disable()
enable()
get_directory()
getCascade()
_populateMasterList()
checkRequire()
saveList()
rebuildLocal()
loadConfig()
_getListByType()
_splitName()
negate()
Class: Doku_Plugin_Controller - X-Ref
| __construct() X-Ref |
| Populates the master list of plugins |
| getList($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 |
| load($type,$name,$new=false,$disabled=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 param: $disabled bool true to load even disabled plugins return: DokuWiki_PluginInterface|null the plugin object or null on failure |
| isdisabled($plugin) X-Ref |
| Whether plugin is disabled param: string $plugin name of plugin return: bool true disabled, false enabled |
| disable($plugin) X-Ref |
| Disable the plugin param: string $plugin name of plugin return: bool true saving succeed, false saving failed |
| enable($plugin) X-Ref |
| Enable the plugin param: string $plugin name of plugin return: bool true saving succeed, false saving failed |
| get_directory($plugin) X-Ref |
| Returns directory name of plugin param: string $plugin name of plugin return: string name of directory |
| getCascade() X-Ref |
| Returns cascade of the config files return: array with arrays of plugin configs |
| _populateMasterList() X-Ref |
| No description |
| checkRequire($files) X-Ref |
| Includes the plugin config $files and returns the entries of the $plugins array set in these files param: array $files list of files to include, latter overrides previous return: array with entries of the $plugins arrays of the included files |
| saveList($forceSave = false) X-Ref |
| Save the current list of plugins param: bool $forceSave; return: bool true saving succeed, false saving failed |
| rebuildLocal() X-Ref |
| Rebuild the set of local plugins return: array array of plugins to be saved in end($config_cascade['plugins']['local']) |
| loadConfig() X-Ref |
| Build the list of plugins and cascade |
| _getListByType($type, $enabled) X-Ref |
| Returns a list of available plugin components of given type param: string $type plugin_type name; the type of plugin to return, param: bool $enabled true to return enabled plugins, return: array of plugin components of requested type |
| _splitName($name) X-Ref |
| Split name in a plugin name and a component name param: string $name return: array with |
| negate($input) X-Ref |
| Returns inverse boolean value of the input param: mixed $input return: bool inversed boolean value of input |