Lines Matching full:plugins
191 …* get a list of all Plugins installed in the farmer wiki, regardless whether they are active or no…
193 * @param bool $all get all plugins, even disabled ones
202 $plugins = $plugin_controller->getList('', $all);
204 // filter out a few plugins
205 $plugins = array_filter(
206 $plugins,
216 sort($plugins);
217 return $plugins;
232 $localfile = DOKU_FARMDIR . $animal . '/conf/plugins.local.php';
233 $plugins = [];
238 $this->animalPluginState[$animal] = $plugins;
239 return $plugins;
243 * Return the default state plugins would have in animals
256 $plugins = [];
258 if ($farmconf['inherit']['plugins']) {
259 $plugins[$one] = !plugin_isdisabled($one);
261 $plugins[$one] = true; // default state is enabled
265 ksort($plugins);
266 $this->defaultPluginState = $plugins;
267 return $plugins;
271 * Return a structure giving detailed info about the state of all plugins in an animal
309 $plugins = $this->getAnimalPluginLocalStates($animal);
311 if (isset($plugins[$plugin])) unset($plugins[$plugin]);
313 $plugins[$plugin] = $state;
316 $this->writePluginConf($plugins, $animal);
323 * Write the list of (deactivated) plugins as plugin configuration of an animal to file
327 … * @param array $plugins associative array with the key being the plugin name and the value 0 or 1
330 public function writePluginConf($plugins, $animal) argument
332 $pluginConf = '<?php' . "\n# plugins enabled and disabled by the farmer plugin\n";
333 foreach ($plugins as $plugin => $status) {
334 $pluginConf .= '$plugins[\'' . $plugin . '\'] = ' . $status . ";\n";
336 io_saveFile(DOKU_FARMDIR . $animal . '/conf/plugins.local.php', $pluginConf);
340 opcache_invalidate(DOKU_FARMDIR . $animal . '/conf/plugins.local.php');
344 $this->animalPluginState[$animal] = $plugins;