setCredentialColumn example


    public function refresh()
    {
        $credential = $this->_credential;
        $credentialColumn = $this->_credentialColumn;
        $identity = $this->_identity;
        $identityColumn = $this->_identityColumn;
        $credentialTreatment = $this->_credentialTreatment;

        $expiry = Zend_Date::now()->subSecond($this->expiry);
        $this->setCredential($expiry);
        $this->setCredentialColumn($this->expiryColumn);

        $this->setIdentity($this->sessionId);
        $this->setIdentityColumn($this->sessionIdColumn);

        $result = parent::authenticate();

        $this->_credential = $credential;
        $this->_credentialColumn = $credentialColumn;
        $this->_identity = $identity;
        $this->_identityColumn = $identityColumn;
        $this->_credentialTreatment = $credentialTreatment;

        
$this->_setDbAdapter($zendDb);

        if ($tableName !== null) {
            $this->setTableName($tableName);
        }

        if ($identityColumn !== null) {
            $this->setIdentityColumn($identityColumn);
        }

        if ($credentialColumn !== null) {
            $this->setCredentialColumn($credentialColumn);
        }

        if ($credentialTreatment !== null) {
            $this->setCredentialTreatment($credentialTreatment);
        }
    }

    /** * setTableName() - set the table name to be used in the select query * * @param string $tableName * * @return Zend_Auth_Adapter_DbTable Provides a fluent interface */
Home | Imprint | This part of the site doesn't use cookies.