updateLockUntilDate example



    /** * Disables an account until a given date. * $date has to be an Zend_Date object * * @return Enlight_Components_Auth_Adapter_DbTable */
    public function setLockedUntil(Zend_Date $date)
    {
        $this->lockedUntil = $date;
        $this->updateLockUntilDate($date);
        $this->addCondition($this->_zendDb->quoteInto(
            $this->_zendDb->quoteIdentifier($this->lockedUntilColumn, true) . ' <= ?', Zend_Date::now()
        ));

        return $this;
    }

    /** * Gets the date until an account has been disabled. Returns a Zend_Date * * @return Zend_Date */
Home | Imprint | This part of the site doesn't use cookies.