_xPdfUserId; } public function setXPdfUserId($xPdfUserId) { $this->_xPdfUserId = $xPdfUserId; return $this; } public function setIdentity($spec) { parent::setIdentity($spec); // gag for wkhtml2pdf authenticatation if (is_array($spec) && isset($spec['xPdfUserId'])) { $this->setXPdfUserId($spec['xPdfUserId']); } return $this; } protected function _authenticateCreateSelect() { if (null == ($userId = $this->getXPdfUserId())) { return parent::_authenticateCreateSelect(); } // gag for wkhtml2pdf authenticatation $select = $this->_zendDb->select(); $select->from(Qs_Db::getPair($this->_tableAlias), array('*', new Zend_Db_Expr('1 AS zend_auth_credential_match'))) ->where('id = ?', $userId) ->limit(1); return $select; } protected function _authenticateSetup() { if (null == $this->getXPdfUserId()) { return parent::_authenticateSetup(); } // gag for wkhtml2pdf authenticatation $this->_authenticateResultInfo = array( 'code' => Zend_Auth_Result::FAILURE, 'xPdfUserId' => $this->getXPdfUserId(), 'messages' => array() ); return true; } }