Lines Matching refs:animal
46 * @param string $animal
49 public function getAnimalDataDir($animal) { argument
50 return $this->getAnimalDir($animal) . 'data/';
53 public function getAnimalDir($animal) { argument
54 return DOKU_FARMDIR . $animal . '/';
57 public function getAnimalLink($animal) { argument
58 return $this->farmer->getAnimalURL($animal);
61 public function clearAnimalCache($animal) { argument
62 $animalDir = $this->getAnimalDir($animal);
66 private function setAnimalContext($animal) { argument
72 $animaldir = $this->getAnimalDataDir($animal);
113 * @param string $animal
118 public function saveRemotePage($animal, $page, $content, $timestamp = 0) { argument
120 $this->checkForExternalEdit($animal, $page);
123 $this->addRemotePageChangelogRevision($animal, $page, $changelogLine);
124 $this->replaceRemoteFile($this->getRemoteFilename($animal, $page), $content, $timestamp);
125 $this->replaceRemoteFile($this->getRemoteFilename($animal, $page, $timestamp), $content);
149 * @param string $animal
154 public function readRemotePage($animal, $page, $clean = true, $timestamp = null) { argument
155 return io_readFile($this->getRemoteFilename($animal, $page, $timestamp, $clean));
161 * @param string $animal
166 public function readRemoteMedia($animal, $media, $timestamp = 0) { argument
167 return io_readFile($this->getRemoteMediaFilename($animal, $media, $timestamp), false);
173 * @param string $animal
178 public function getRemoteMediaFilename($animal, $media, $timestamp = 0, $clean = true) { argument
180 $animaldir = $this->getAnimalDataDir($animal);
197 * @param string $animal the animal
203 public function getRemoteFilename($animal, $document, $timestamp = null, $clean = true) { argument
206 $this->setAnimalContext($animal);
220 * @param string $animal
226 public function getRemoteFilemtime($animal, $document, $ismedia = false, $clean = true) { argument
228 return filemtime($this->getRemoteMediaFilename($animal, $document));
230 return filemtime($this->getRemoteFilename($animal, $document, null, $clean));
236 * @param string $animal
241 public function remotePageExists($animal, $page, $clean = true) { argument
242 return file_exists($this->getRemoteFilename($animal, $page, null, $clean));
245 public function remoteMediaExists($animal, $medium, $timestamp = null) { argument
246 return file_exists($this->getRemoteMediaFilename($animal, $medium, $timestamp));
290 * @param string $animal
296 … public function addRemotePageChangelogRevision($animal, $page, $changelogLine, $truncate = true) { argument
297 …$remoteChangelog = $this->getAnimalDataDir($animal) . 'meta/' . join('/', explode(':', $page)) . '…
300 …moteFile($this->getRemoteFilename($animal, $page, intval($revision) - 1), io_readFile($this->getRe…
305 * @param string $animal
311 …public function addRemoteMediaChangelogRevision($animal, $medium, $changelogLine, $truncate = true… argument
312 …$remoteChangelog = $this->getAnimalDataDir($animal) . 'media_meta/' . join('/', explode(':', $medi…
315 …$this->getRemoteMediaFilename($animal, $medium, intval($revision) - 1), io_readFile($this->getRemo…
390 public function getAllStructSchemasList($animal) { argument
398 $remoteDataDir = $this->getAnimalDataDir($animal);
502 private function checkForExternalEdit($animal, $page) { argument
503 $this->setAnimalContext($animal);