Lines Matching refs:plugin
116 * Check if the farm is correctly configured for this farmer plugin
220 * Get the plugin states configured locally in the given animal
282 foreach ($defaults as $plugin => $set) {
283 $current = ['name' => $plugin, 'default' => $set, 'actual' => $set, 'isdefault' => true];
285 if (isset($local[$plugin])) {
286 $current['actual'] = (bool) $local[$plugin];
290 $info[$plugin] = $current;
298 * Set the state of a plugin in an animal
300 * @param string $plugin
304 public function setPluginState($plugin, $animal, $state)
310 if (isset($plugins[$plugin])) unset($plugins[$plugin]);
312 $plugins[$plugin] = $state;
322 * Write the list of (deactivated) plugins as plugin configuration of an animal to file
324 * updates the plugin state cache
326 * @param array $plugins associative array with the key being the plugin name and the value 0 or 1
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";