Lines Matching refs:plugin
87 [$plugin, /* component */ ] = $this->splitName($name);
90 if (!$disabled && !$this->isEnabled($plugin)) {
109 $inf = confToHash(DOKU_PLUGIN . "$plugin/plugin.info.txt");
110 if (isset($inf['base']) && $inf['base'] != $plugin) {
114 hsc($plugin),
121 } elseif (preg_match('/^' . DOKU_PLUGIN_NAME_REGEX . '$/', $plugin) !== 1) {
125 hsc($plugin)
132 ErrorHandler::showExceptionMsg($e, sprintf('Failed to load plugin %s', $plugin));
142 * @param string $plugin name of plugin
146 public function isDisabled($plugin) argument
149 return !$this->isEnabled($plugin);
155 * @param string $plugin name of plugin
158 public function isEnabled($plugin) argument
160 return !empty($this->masterList[$plugin]);
166 * @param string $plugin name of plugin
169 public function disable($plugin) argument
171 if (array_key_exists($plugin, $this->pluginCascade['protected'])) return false;
172 $this->masterList[$plugin] = 0;
179 * @param string $plugin name of plugin
182 public function enable($plugin) argument
184 if (array_key_exists($plugin, $this->pluginCascade['protected'])) return false;
185 $this->masterList[$plugin] = 1;
206 while (false !== ($plugin = readdir($dh))) {
207 if ($plugin[0] === '.') continue; // skip hidden entries
208 …if (is_file(DOKU_PLUGIN . $plugin)) continue; // skip files, we're only interested in directori…
210 … if (array_key_exists($plugin, $this->masterList) && $this->masterList[$plugin] == 0) {
211 $all_plugins[$plugin] = 0;
212 … } elseif (array_key_exists($plugin, $this->masterList) && $this->masterList[$plugin] == 1) {
213 $all_plugins[$plugin] = 1;
215 $all_plugins[$plugin] = 1;
266 foreach ($local_plugins as $plugin => $value) {
267 $out .= "\$plugins['$plugin'] = $value;\n";
345 foreach ($master_list as $plugin) {
346 if (file_exists(DOKU_PLUGIN . "$plugin/$type.php")) {
347 $plugins[] = $plugin;
350 $typedir = DOKU_PLUGIN . "$plugin/$type/";
359 $plugins[] = $plugin . '_' . substr($component, 0, -4);
404 foreach ($plugins as $plugin) {
405 if (file_exists(DOKU_PLUGIN . $plugin . '/vendor/autoload.php')) {
407 require_once(DOKU_PLUGIN . $plugin . '/vendor/autoload.php');
409 … ErrorHandler::showExceptionMsg($e, sprintf('Failed to init plugin %s autoloader', $plugin));