library/Garp/Model/Behavior/Authenticatable.php
public function updateLoginStats($userId, $columns = array()) {
        if (isset($_SERVER['REMOTE_ADDR'])) {
            $columns['ip_address'] = $_SERVER['REMOTE_ADDR'];
        }
        $columns['last_login'] = new Zend_Db_Expr('NOW()');
        return $this->_model->update(
            $columns,
            $this->_model->getAdapter()->quoteInto('user_id = ?', $userId)
        );
    }
public function updateLoginStats($userId, $columns = array()) {
        if (isset($_SERVER['REMOTE_ADDR'])) {
            $columns['ip_address'] = $_SERVER['REMOTE_ADDR'];
        }
        $columns['last_login'] = new Zend_Db_Expr('NOW()');
        return $this->_model->update(
            $columns,
            $this->_model->getAdapter()->quoteInto('user_id = ?', $userId)
        );
    }
public function updateLoginStats ( $ userId , $ columns = array ( ) ) { if ( isset ( $ _SERVER [ 'REMOTE_ADDR' ] ) ) { $ columns [ 'ip_address' ] = $ _SERVER [ 'REMOTE_ADDR' ] ; } $ columns [ 'last_login' ] = new Zend_Db_Expr ( 'NOW()' ) ; return $ this -> _model -> update ( $ columns , $ this -> _model -> getAdapter ( ) -> quoteInto ( 'user_id = ?' , $ userId ) ) ; }
Update login statistics, like IP address and the current date

@param int $userId The user_id value
@param array $columns Extra columns, variable
@return int The number of rows updated.
Update login statistics like IP address and the current date