Home
last modified time | relevance | path

Searched refs:plugin (Results 1 - 25 of 53) sorted by relevance

123

/dokuwiki/inc/Extension/
H A DPluginController.php19 /** @var array all installed plugins and their enabled state [plugin=>enabled] */
37 * the type of plugin to return,
44 * - plugin names when $type = ''
45 * - or plugin component names when a $type is given
70 * Loads the given plugin and creates an object of it
72 * @param $type string type of plugin to load
73 * @param $name string name of the plugin to load
74 * @param $new bool true to return a new instance of the plugin, false to use an already loaded instance
76 * @return PluginInterface|null the plugin object or null on failure
86 list($plugin, /*
[all...]
H A DEventHandler.php27 /** @var ActionPlugin $plugin */
28 $plugin = null; variable
32 $plugin = plugin_load('action', $plugin_name); variable
34 if ($plugin !== null) $plugin->register($this);
H A DPluginTrait.php6 * Provides standard DokuWiki plugin behaviour
13 protected $configloaded = false; // set to true by loadConfig() after loading plugin configuration variables
14 protected $conf = array(); // array to hold plugin settings, best accessed via ->getConf()
22 $info = DOKU_PLUGIN . '/' . $parts[2] . '/plugin.info.txt';
27 'Verify you\'re running the latest version of the plugin. If the problem persists, send a ' .
28 'bug report to the author of the ' . $parts[2] . ' plugin.', -1
32 'name' => $parts[2] . ' plugin',
50 if (is_null($obj) && $msg) msg("Helper plugin $name is not available or invalid.", -1);
110 $plugin = $this->getPluginName(); variable
111 $file = DOKU_CONF . 'plugin_lang/' . $plugin
183 $plugin = $this->getPluginName(); global() variable
[all...]
H A DAdminPlugin.php8 * Implements an admin interface in a plugin
35 * By default it tries to find an 'admin.svg' file in the plugin directory.
48 $plugin = $this->getPluginName(); variable
49 return DOKU_PLUGIN . $plugin . '/admin.svg';
77 * Checks if access should be granted to this admin plugin
79 * @return bool true if the current user may access this admin plugin
/dokuwiki/inc/
H A Dpluginutils.php9 // plugin related constants
20 * Original plugin functions, remain for backwards compatibility
28 * @return array with plugin names or plugin component names
40 * Returns plugin object
41 * Returns only new instances of a plugin when $new is true or if plugin is not Singleton,
44 * @param $type string type of plugin to load
45 * @param $name string name of the plugin to load
46 * @param $new bool true to return a new instance of the plugin, fals
[all...]
H A DErrorHandler.php34 $plugin = self::guessPlugin($e); variable
37 if ($plugin) $msg .= ' It might be a problem in the ' . $plugin . ' plugin.';
112 * Checks the the stacktrace for plugin files
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingRenderer.php8 namespace dokuwiki\plugin\config\core\Setting;
21 foreach(plugin_list('renderer') as $plugin) {
22 $renderer = plugin_load('renderer', $plugin);
24 $this->choices[] = $plugin;
27 $this->prompts[$plugin] = $info['name'];
35 public function html(\admin_plugin_config $plugin, $echo = false) {
38 // transfer some plugin names to the config plugin
40 if(!$plugin->getLang($this->key . '_o_' . $choice)) {
42 $plugin
[all...]
H A DSettingDisableactions.php3 namespace dokuwiki\plugin\config\core\Setting;
11 public function html(\admin_plugin_config $plugin, $echo = false) {
15 // transfer some DokuWiki language strings to the plugin
16 $plugin->addLang($this->key . '_revisions', $lang['btn_revs']);
18 if(isset($lang['btn_' . $choice])) $plugin->addLang($this->key . '_' . $choice, $lang['btn_' . $choice]);
21 return parent::html($plugin, $echo);
H A DSettingUndefined.php3 namespace dokuwiki\plugin\config\core\Setting;
5 use dokuwiki\plugin\config\core\Configuration;
21 public function html(\admin_plugin_config $plugin, $echo = false) {
24 '/^(?:plugin|tpl)' . Configuration::KEYMARKER . '.*?' . Configuration::KEYMARKER . '(.*)$/',
35 $input = $plugin->getLang($this->errorMessage);
H A DSettingPassword.php3 namespace dokuwiki\plugin\config\core\Setting;
28 public function html(\admin_plugin_config $plugin, $echo = false) {
34 $label = '<label for="config___' . $key . '">' . $this->prompt($plugin) . '</label>';
H A DSettingString.php3 namespace dokuwiki\plugin\config\core\Setting;
10 public function html(\admin_plugin_config $plugin, $echo = false) {
27 $label = '<label for="config___' . $key . '">' . $this->prompt($plugin) . '</label>';
H A DSettingMultichoice.php3 namespace dokuwiki\plugin\config\core\Setting;
13 public function html(\admin_plugin_config $plugin, $echo = false) {
31 $nochoice = $plugin->getLang('nochoice');
36 $label = '<label for="config___' . $key . '">' . $this->prompt($plugin) . '</label>';
42 $option = $plugin->getLang($this->key . '_o_' . $choice);
H A DSettingAuthtype.php3 namespace dokuwiki\plugin\config\core\Setting;
16 foreach($plugin_controller->getList('auth') as $plugin) {
17 $this->choices[] = $plugin;
33 // attempt to load the plugin
36 // @TODO: throw an error in plugin controller instead of returning null
43 // verify proper instantiation (is this really a plugin?) @TODO use instanceof? implement interface?
H A DSettingOnoff.php3 namespace dokuwiki\plugin\config\core\Setting;
27 public function html(\admin_plugin_config $plugin, $echo = false) {
40 $label = '<label for="config___' . $key . '">' . $this->prompt($plugin) . '</label>';
H A DSettingMulticheckbox.php3 namespace dokuwiki\plugin\config\core\Setting;
36 public function html(\admin_plugin_config $plugin, $echo = false) {
67 $prompt = ($plugin->getLang($this->key . '_' . $choice) ?
68 $plugin->getLang($this->key . '_' . $choice) : htmlspecialchars($choice));
96 $plugin->getLang($key . '_other') .
104 $label = '<label>' . $this->prompt($plugin) . '</label>';
H A DSetting.php3 namespace dokuwiki\plugin\config\core\Setting;
5 use dokuwiki\plugin\config\core\Configuration;
21 /** @var array valid alerts, images matching the alerts are in the plugin's images directory */
164 * 'plugin' for plugin configuration
171 if(substr($this->getKey(), 0, 10) == 'plugin' . Configuration::KEYMARKER) {
172 return 'plugin';
183 * @param \admin_plugin_config $plugin object of config plugin
187 public function html(\admin_plugin_config $plugin,
[all...]
H A DSettingArray.php3 namespace dokuwiki\plugin\config\core\Setting;
83 public function html(\admin_plugin_config $plugin, $echo = false) {
100 $label = '<label for="config___' . $key . '">' . $this->prompt($plugin) . '</label>';
H A DSettingHidden.php3 namespace dokuwiki\plugin\config\core\Setting;
/dokuwiki/lib/plugins/styling/
H A Dpopup.php10 /** @var admin_plugin_styling $plugin */
11 $plugin = plugin_load('admin', 'styling'); variable
12 if (!$plugin->isAccessibleByCurrentUser()) die('only admins allowed');
13 $plugin->ispopup = true;
16 $plugin->handle();
18 // output plugin in a very minimal template:
23 <title><?php echo $plugin->getLang('menu') ?></title>
29 <?php $plugin->html() ?>
/dokuwiki/bin/
H A Dplugin.php23 $options->registerArgument('plugin', 'The plugin CLI you want to run. Leave off to see list', false);
39 $plugin = $this->loadPlugin($argv[0]); variable
40 if($plugin !== null) {
41 $plugin->run();
71 $plugin = $this->loadPlugin($name); variable
72 if($plugin === null) continue;
73 $info = $plugin->getInfo();
86 * Instantiate a CLI plugin
92 // execute the plugin CL
[all...]
/dokuwiki/lib/plugins/config/core/
H A DLoader.php3 namespace dokuwiki\plugin\config\core;
49 foreach($this->plugins as $plugin) {
53 DOKU_PLUGIN . $plugin . '/conf/metadata.php',
54 'plugin',
55 $plugin
86 foreach($this->plugins as $plugin) {
90 DOKU_PLUGIN . $plugin . '/conf/default.php',
91 'plugin',
92 $plugin
121 foreach($this->plugins as $plugin) {
[all...]
H A DConfiguration.php3 namespace dokuwiki\plugin\config\core;
5 use dokuwiki\plugin\config\core\Setting\Setting;
6 use dokuwiki\plugin\config\core\Setting\SettingNoClass;
7 use dokuwiki\plugin\config\core\Setting\SettingNoDefault;
8 use dokuwiki\plugin\config\core\Setting\SettingNoKnownClass;
9 use dokuwiki\plugin\config\core\Setting\SettingUndefined;
206 $modern = '\\dokuwiki\\plugin\\config\\core\\Setting\\Setting' . $modern;
216 return '\\dokuwiki\\plugin\\config\\core\\Setting\\Setting';
/dokuwiki/inc/Action/
H A DAdmin.php26 // retrieve admin plugin name from $_REQUEST['page']
28 /** @var $plugin \dokuwiki\Extension\AdminPlugin */
29 if($plugin = plugin_getRequestAdminPlugin()) { // FIXME this method does also permission checking
30 if(!$plugin->isAccessibleByCurrentUser()) {
33 $plugin->handle();
/dokuwiki/inc/Parsing/Handler/
H A DBlock.php152 if ($cname == 'plugin') {
154 $plugin = true; variable
158 $plugin = false; variable
161 if (in_array($cname, $this->stackClose) && (!$plugin || $plugin_close)) {
167 if (in_array($cname, $this->stackOpen) && (!$plugin || $plugin_open)) {
176 if (in_array($cname, $this->blockClose) && (!$plugin || $plugin_close)) {
182 if (in_array($cname, $this->blockOpen) && (!$plugin || $plugin_open)) {
/dokuwiki/inc/Remote/
H A DApi.php14 * The other is plugin methods. These are provided by remote plugins.
30 * plugin names are formed the following:
34 * plugin methods are formed like 'plugin.<plugin name>.<method name>'.
35 * i.e.: plugin.clock.getTime or plugin.clock_gmt.getTime
53 * The data inside is 'custom.call.something' => array('plugin name', 'remote method name')
97 if ($type === 'plugin') {
132 list($plugin,
164 $plugin = plugin_load('remote', $pluginName); global() variable
310 $plugin = plugin_load('remote', $pluginName); global() variable
[all...]

Completed in 29 milliseconds

123