Lines Matching refs:animal
18 * Returns the name of the current animal if any, false otherwise
40 * Was the current animal requested by host?
51 * Was an animal requested that could not be found?
62 * Guess the URL for an animal
64 * @param $animal
67 public function getAnimalURL($animal)
71 if (strpos($animal, '.') !== false) {
72 return 'http://' . $animal;
74 return 'http://' . $animal . '.' . $config['base']['basedomain'];
76 return DOKU_URL . '!' . $animal . '/';
90 $animal = basename(dirname($path));
91 if ($animal == '_animal') continue; // old template
92 $animals[] = $animal;
220 * Get the plugin states configured locally in the given animal
224 * @param $animal
227 public function getAnimalPluginLocalStates($animal)
229 if (isset($this->animalPluginState[$animal])) return $this->animalPluginState[$animal];
231 $localfile = DOKU_FARMDIR . $animal . '/conf/plugins.local.php';
237 $this->animalPluginState[$animal] = $plugins;
270 * Return a structure giving detailed info about the state of all plugins in an animal
272 * @param $animal
275 public function getAnimalPluginRealState($animal)
280 $local = $this->getAnimalPluginLocalStates($animal);
298 * Set the state of a plugin in an animal
301 * @param string $animal
304 public function setPluginState($plugin, $animal, $state)
308 $plugins = $this->getAnimalPluginLocalStates($animal);
315 $this->writePluginConf($plugins, $animal);
318 if (isset($this->animalPluginState[$animal])) unset($this->animalPluginState[$animal]);
322 * Write the list of (deactivated) plugins as plugin configuration of an animal to file
327 * @param string $animal Directory of the animal within DOKU_FARMDIR
329 public function writePluginConf($plugins, $animal)
335 io_saveFile(DOKU_FARMDIR . $animal . '/conf/plugins.local.php', $pluginConf);
336 touch(DOKU_FARMDIR . $animal . '/conf/local.php');
339 opcache_invalidate(DOKU_FARMDIR . $animal . '/conf/plugins.local.php');
340 opcache_invalidate(DOKU_FARMDIR . $animal . '/conf/local.php');
343 $this->animalPluginState[$animal] = $plugins;