Lines Matching refs:plugins

192      * @param bool $all get all plugins, even disabled ones
201 $plugins = $plugin_controller->getList('', $all);
203 // filter out a few plugins
204 $plugins = array_filter(
205 $plugins,
215 sort($plugins);
216 return $plugins;
231 $localfile = DOKU_FARMDIR . $animal . '/conf/plugins.local.php';
232 $plugins = [];
237 $this->animalPluginState[$animal] = $plugins;
238 return $plugins;
242 * Return the default state plugins would have in animals
255 $plugins = [];
257 if ($farmconf['inherit']['plugins']) {
258 $plugins[$one] = !plugin_isdisabled($one);
260 $plugins[$one] = true; // default state is enabled
264 ksort($plugins);
265 $this->defaultPluginState = $plugins;
266 return $plugins;
270 * Return a structure giving detailed info about the state of all plugins in an animal
308 $plugins = $this->getAnimalPluginLocalStates($animal);
310 if (isset($plugins[$plugin])) unset($plugins[$plugin]);
312 $plugins[$plugin] = $state;
315 $this->writePluginConf($plugins, $animal);
322 * Write the list of (deactivated) plugins as plugin configuration of an animal to file
326 * @param array $plugins associative array with the key being the plugin name and the value 0 or 1
329 public function writePluginConf($plugins, $animal)
331 $pluginConf = '<?php' . "\n# plugins enabled and disabled by the farmer plugin\n";
332 foreach ($plugins as $plugin => $status) {
333 $pluginConf .= '$plugins[\'' . $plugin . '\'] = ' . $status . ";\n";
335 io_saveFile(DOKU_FARMDIR . $animal . '/conf/plugins.local.php', $pluginConf);
339 opcache_invalidate(DOKU_FARMDIR . $animal . '/conf/plugins.local.php');
343 $this->animalPluginState[$animal] = $plugins;