Lines Matching refs:this

56 		if(defined('DOKU_IS_FARMER')) $this->getConf();
58 $this->disabled = (isset($conf['pluginfarm']) && ($conf['pluginfarm'] == 0));
70 'desc' => 'Manage Wiki farm'.($this->disabled ? ' (disabled)' : ''),
124 $this->conf = $farmconf;
125 return $this->conf;
135 if(!isset($this->errors[$family])) $this->errors[$family] = array();
136 $this->errors[$family][] = $e;
143 if(!count($this->errors)) return;
144 foreach($this->errors as $c => $list) {
146 ptln(' '.$this->getLang($c));
148 …foreach($list as $e) ptln(' <li>'.$this->getLang(is_array($e) ? $e['code'] : $e, is_array($e) ? $…
159 $this->success[] = $s;
166 if(!count($this->success)) return;
168 if(count($this->success) > 1) {
170 …foreach($this->success as $s) ptln(' <li>'.$this->getLang(is_array($s) ? $s['code'] : $s, is_arra…
173 $s = reset($this->success);
174 ptln(' '.$this->getLang(is_array($s) ? $s['code'] : $s, is_array($s) ? $s['data'] : null));
192 return number_format($s, ($s >= 100 || $e == '') ? 0 : 1).$e.$this->getLang('size_unit');
228 if($this->disabled) return;
232 $this->setupLocale();
235 …$this->version = @file_exists(DOKU_FARM_PLUGIN.'installed') ? trim(@file_get_contents(DOKU_FARM_PL…
236 if($this->version != DOKU_FARM_VERSION) {
238 if(is_null($this->version)) {
240 }elseif($this->version == '0.99') {
244 $this->success('install_success');
246 }else $this->error('install_errors', 'install_stepupdate_failure');
252 $this->cmd = 'overview';
253 $this->opt = array();
256 $this->cmd = key($_REQUEST['farm_cmd']);
257 $t = $_REQUEST['farm_cmd'][$this->cmd];
270 $this->opt[$k] = $v;
272 $this->opt[$k] = $t[$k];
276 }else $this->cmd = $_REQUEST['farm_cmd'];
290 if(!isset($this->opt[$k])) $this->opt[$k] = $v;
292 }else $this->opt[$_REQUEST['farm_opt']] = true;
298 $this->opt[$m[1]] = $v;
317 if(!isset($commands[$this->cmd])) $this->cmd = 'overview';
320 $file = DOKU_FARM_PLUGIN.$commands[$this->cmd].'.class.php';
323 $class = 'dokuwiki_farm_'.$commands[$this->cmd];
328 $this->handler = & new $class($this);
329 if($this->handler) $this->handler->process();
340 if($this->disabled) return;
344 $this->setupLocale();
347 ptln(' <div class="farm_title">'.$this->getLang('menu').'</div>');
350 if($this->cmd != 'farminstall') {
352this->cmd == 'overview' ? 'class="current_cmd"' : '').' href="'.$this->wl('overview').'"><img src=…
353this->cmd == 'animal' && isset($this->opt['aid'])) ptln(' <a class="current_cmd" href="'.$this->w…
354this->cmd == 'animal' && isset($this->opt['new']) ? 'class="current_cmd"' : '').' href="'.$this->w…
355this->cmd == 'farmconfig' ? 'class="current_cmd"' : '').' href="'.$this->wl('farmconfig').'"><img …
356this->conf['enablesoap']) ptln(' <a '.($this->cmd == 'soapconfig' ? 'class="current_cmd"' : '').'…
357this->conf['virtual']) ptln(' <a '.($this->cmd == 'virtualhostconfig' ? 'class="current_cmd"' : '…
362 ptln(' <div class="farm_cmd farm_cmd_'.$this->cmd.'_class">');
363 …if(!$this->handler) $this->error('system_errors', array('code' => 'system_nohandler_failure', 'dat…
364 if($this->handler) if(method_exists($this->handler, 'htmlheader')) $this->handler->htmlheader();
365 $this->putErrors();
366 $this->putSuccess();
367 if($this->handler) $this->handler->html();