Lines Matching refs:plugin
8 * Provides standard DokuWiki plugin behaviour
14 protected $configloaded = false; // set to true by loadConfig() after loading plugin configuration variables
15 protected $conf = []; // array to hold plugin settings, best accessed via ->getConf()
27 throw new \RuntimeException('Class does not follow the plugin naming convention');
30 // class like action_plugin_myplugin_ajax belongs to plugin 'myplugin'
38 'name' => $ext . ' plugin',
39 'desc' => 'Unknown purpose - bad plugin.info.txt',
43 $file = DOKU_PLUGIN . '/' . $ext . '/plugin.info.txt';
56 Logger::error(sprintf('Extension %s does not provide a plugin.info.txt in %s', $ext, $file));
74 if (is_null($obj) && $msg) msg("Helper plugin $name is not available or invalid.", -1);
134 $plugin = $this->getPluginName();
135 $file = DOKU_CONF . 'plugin_lang/' . $plugin . '/' . $conf['lang'] . '/' . $id . '.' . $ext;
137 $file = DOKU_PLUGIN . $plugin . '/lang/' . $conf['lang'] . '/' . $id . '.' . $ext;
140 $file = DOKU_PLUGIN . $plugin . '/lang/en/' . $id . '.' . $ext;
158 // don't include once, in case several plugin components require the same language file
160 foreach ($config_cascade['lang']['plugin'] as $config_file) {
168 foreach ($config_cascade['lang']['plugin'] as $config_file) {
207 $plugin = $this->getPluginName();
210 if (isset($conf['plugin'][$plugin][$key])) continue;
211 $conf['plugin'][$plugin][$key] = $value;
215 $this->conf =& $conf['plugin'][$plugin];
219 * read the plugin's default configuration settings from conf/default.php