public function updateToken($tokenId=false)
    {
        if (!$tokenId) {
            $tokenId = $this->token->getTokenId();
        }
        $tokenData['gto_mail_sent_num'] = new \Zend_Db_Expr('gto_mail_sent_num + 1');
        $tokenData['gto_mail_sent_date'] = \MUtil_Date::format(new \Zend_Date(), 'yyyy-MM-dd');

        $this->db->update('gems__tokens', $tokenData, $this->db->quoteInto('gto_id_token = ?', $tokenId));
    }
public function updateToken($tokenId=false)
    {
        if (!$tokenId) {
            $tokenId = $this->token->getTokenId();
        }
        $tokenData['gto_mail_sent_num'] = new \Zend_Db_Expr('gto_mail_sent_num + 1');
        $tokenData['gto_mail_sent_date'] = \MUtil_Date::format(new \Zend_Date(), 'yyyy-MM-dd');

        $this->db->update('gems__tokens', $tokenData, $this->db->quoteInto('gto_id_token = ?', $tokenId));
    }
public function updateToken ( $ tokenId = false ) { if ( ! $ tokenId ) { $ tokenId = $ this -> token -> getTokenId ( ) ; } $ tokenData [ 'gto_mail_sent_num' ] = new \ Zend_Db_Expr ( 'gto_mail_sent_num + 1' ) ; $ tokenData [ 'gto_mail_sent_date' ] = \ MUtil_Date :: format ( new \ Zend_Date ( ) , 'yyyy-MM-dd' ) ; $ this -> db -> update ( 'gems__tokens' , $ tokenData , $ this -> db -> quoteInto ( 'gto_id_token = ?' , $ tokenId ) ) ; }
Update the token data when a Mail has been sent.
@param  integer $tokenId TokenId to update. If none is supplied, use the current token
Update the token data when a Mail has been sent .