original_string: 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));
      }
code: 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));
      }
code_tokens: 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 ) ) ; }
docstring: Update the token data when a Mail has been sent.
  @param  integer $tokenId TokenId to update. If none is supplied, use the current token
docstring_tokens: Update the token data when a Mail has been sent .