[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorTestController extends PhabricatorController { 4 5 private $config = array(); 6 7 public function setConfig($key, $value) { 8 $this->config[$key] = $value; 9 return $this; 10 } 11 12 public function getConfig($key, $default) { 13 return idx($this->config, $key, $default); 14 } 15 16 public function shouldRequireLogin() { 17 return $this->getConfig('login', parent::shouldRequireLogin()); 18 } 19 20 public function shouldRequireAdmin() { 21 return $this->getConfig('admin', parent::shouldRequireAdmin()); 22 } 23 24 public function shouldAllowPublic() { 25 return $this->getConfig('public', parent::shouldAllowPublic()); 26 } 27 28 public function shouldRequireEmailVerification() { 29 return $this->getConfig('email', parent::shouldRequireEmailVerification()); 30 } 31 32 public function shouldRequireEnabledUser() { 33 return $this->getConfig('enabled', parent::shouldRequireEnabledUser()); 34 } 35 36 public function processRequest() {} 37 38 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |