Ejemplo n.º 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
     }
 }
Ejemplo n.º 2
0
 public function __construct(Lynx_Database $db, Lynx_Auth_Abstract $auth)
 {
     $this->_auth = $auth;
     parent::__construct($auth->primaryKeyValue(), NULL);
     $this->_db = $db;
 }