示例#1
0
 /**
  * @param Lynx_Database $db
  * @param Lynx_Auth_Abstract $auth
  */
 protected function __construct(Lynx_Database $db, Lynx_Auth_Abstract $auth)
 {
     $this->_db = $db;
     $this->_auth = $auth;
     if ($auth->authenticated()) {
         // get and load permissions
     }
 }
示例#2
0
 public function __construct(Lynx_Database $db, Lynx_Auth_Abstract $auth)
 {
     $this->_auth = $auth;
     parent::__construct($auth->primaryKeyValue(), NULL);
     $this->_db = $db;
 }