Lines Matching refs:this

34 			$this->name = $name;
35 $this->manager = & $manager;
36 $this->path = self::$farmconf['farmfsroot'].self::$farmconf['barn'].$this->name;
45 return $this->name;
53 return $this->path;
66 $wc = $this->getWikiConf();
83 $url .= 'doku.php?animal='.$this->getName();
88 $url .= $id.'?animal='.$this->getName();
93 $url .= $this->getName();
115 if(!self::exists($this->name)) return null;
118 foreach(explode("\n", @file_get_contents($this->path.'/animal.meta')) as $l) {
135 if(!self::exists($this->name)) return null;
138 foreach(explode("\n", @file_get_contents($this->path.'/animal.meta')) as $l) {
147 if($fp = fopen($this->path.'/animal.meta', 'w')) {
160 return $this->getMetadata('status', 'open');
168 return $this->getMetadata('lockstate');
176 if(!$this->infos) $this->infos = new dokuwiki_farm_animal_infos($this);
177 return $this->infos;
185 if(!self::exists($this->name)) return null;
191 if(@file_exists($this->path.'/conf/'.$from)) {
193 foreach(explode("\n", @file_get_contents($this->path.'/conf/'.$from)) as $line) {
200 $this->wikiconf[$as] = $conf;
203 krsort($this->wikiconf);
204 return $this->wikiconf;
217 if(!count($this->wikiconf)) $this->getWikiConf();
218 $c = & $this->wikiconf[$mode];
236 …foreach($el as $k => $v) $r = array_merge($r, $this->buildconfrecursive(array_merge($head, array($…
255 if(!self::exists($this->name)) return false;
262 $conf = implode("\n", $this->buildconfrecursive(array(), $this->wikiconf[$from]));
263 if($fp = @fopen($this->path.'/conf/'.$to, 'w')) {
268 $this->wikiconf = array();
278 if(!self::exists($this->name)) return null;
284 if(!@file_exists($this->path.'/conf/'.$rel[$mode])) return null;
286 foreach(explode("\n", @file_get_contents($this->path.'/conf/'.$rel[$mode])) as $line) {
299 if(!self::exists($this->name)) return false;
305 if(!@file_exists($this->path.'/conf/'.$rel[$mode])) return false;
306 $this->wikiconf = array();
308 if($fp = @fopen($this->path.'/conf/'.$rel[$mode], 'w')) {
330 $wc = $this->getWikiConf();
335 foreach(explode("\n", @file_get_contents($this->path.'/conf/users.auth.php')) as $line) {
377 $users = $this->getUsers();
385 $wc = $this->getWikiConf();
390 $authfile = @file_get_contents($this->path.'/conf/users.auth.php');
397 if($fp = fopen($this->path.'/conf/users.auth.php', 'w')) {
428 $users = $this->getUsers();
436 $wc = $this->getWikiConf();
442 foreach(explode("\n", @file_get_contents($this->path.'/conf/users.auth.php')) as $line) {
446 if($fp = fopen($this->path.'/conf/users.auth.php', 'w')) {
500 …$fs = array_merge($fs, $this->scanfs($p.'/'.$i, $l+1, $bp, base64_encode(substr($p.'/'.$i, strlen(…
511 if(!self::exists($this->name)) return false;
512 return $this->scanfs($this->getPath());
520 if(!self::exists($this->name)) return '';
521 if(!@file_exists($this->path.'/'.$file)) return '';
522 return @file_get_contents($this->path.'/'.$file);
533 if(!self::exists($this->name)) return false;
534 if($delete && !@file_exists($this->path.'/'.$file)) return false;
535 if($delete) return @unlink($this->path.'/'.$file);
536 if($fp = fopen($this->path.'/'.$file, 'w')) {
557 if(!$hookhandler->trigger('delete', 'before', array($this))) {
563 if($this->name == self::$farmconf['animaltemplate']) return false;
564 $r = self::rmdir($this->path);
567 if($hookhandler) $hookhandler->trigger('delete', 'after', array($this->name));