示例#1
0
文件: Restricted.php 项目: kstep/pnut
 /**
  * returns Authorizator to be used for authorization, creates one
  * if it's not instantiated yet.
  * @return Authorizator
  * @author kstep
  */
 protected function getAuthorizator()
 {
     if (!$this->_authorizator) {
         $this->_authorizator = Authorizator::create($this->getStorage());
     }
     return $this->_authorizator;
 }
示例#2
0
文件: Rules.php 项目: kstep/pnut
 public function __construct(Storage $store, array $rules = array())
 {
     $this->_rules = $rules;
     parent::__construct($store);
 }
示例#3
0
文件: Ldap.php 项目: kstep/pnut
 public function __construct(Storage_Ldap $store)
 {
     parent::__construct($store);
 }