original_string: public function checkAction()
      {
          $surveyId = $this->getSurveyId();
          $where    = $this->db->quoteInto('gto_id_survey = ?', $surveyId);
  
          $batch = $this->loader->getTracker()->recalculateTokens('surveyCheck' . $surveyId, $this->currentUser->getUserId(), $where);
  
          $title = sprintf($this->_('Checking for the %s survey for answers .'),
                  $this->db->fetchOne("SELECT gsu_survey_name FROM gems__surveys WHERE gsu_id_survey = ?", $surveyId));
          $this->_helper->BatchRunner($batch, $title, $this->accesslog);
  
          $this->addSnippet('Survey\\CheckAnswersInformation',
                  'itemDescription', $this->_('This task checks all tokens using this survey for answers.')
                  );
      }
code: public function checkAction()
      {
          $surveyId = $this->getSurveyId();
          $where    = $this->db->quoteInto('gto_id_survey = ?', $surveyId);
  
          $batch = $this->loader->getTracker()->recalculateTokens('surveyCheck' . $surveyId, $this->currentUser->getUserId(), $where);
  
          $title = sprintf($this->_('Checking for the %s survey for answers .'),
                  $this->db->fetchOne("SELECT gsu_survey_name FROM gems__surveys WHERE gsu_id_survey = ?", $surveyId));
          $this->_helper->BatchRunner($batch, $title, $this->accesslog);
  
          $this->addSnippet('Survey\\CheckAnswersInformation',
                  'itemDescription', $this->_('This task checks all tokens using this survey for answers.')
                  );
      }
code_tokens: public function checkAction ( ) { $ surveyId = $ this -> getSurveyId ( ) ; $ where = $ this -> db -> quoteInto ( 'gto_id_survey = ?' , $ surveyId ) ; $ batch = $ this -> loader -> getTracker ( ) -> recalculateTokens ( 'surveyCheck' . $ surveyId , $ this -> currentUser -> getUserId ( ) , $ where ) ; $ title = sprintf ( $ this -> _ ( 'Checking for the %s survey for answers .' ) , $ this -> db -> fetchOne ( "SELECT gsu_survey_name FROM gems__surveys WHERE gsu_id_survey = ?" , $ surveyId ) ) ; $ this -> _helper -> BatchRunner ( $ batch , $ title , $ this -> accesslog ) ; $ this -> addSnippet ( 'Survey\\CheckAnswersInformation' , 'itemDescription' , $ this -> _ ( 'This task checks all tokens using this survey for answers.' ) ) ; }
docstring: Check the tokens for a single survey
docstring_tokens: Check the tokens for a single survey