/** * @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 } }
public function __construct(Lynx_Database $db, Lynx_Auth_Abstract $auth) { $this->_auth = $auth; parent::__construct($auth->primaryKeyValue(), NULL); $this->_db = $db; }