original_string: public function checkAction()
      {
          $sourceId = $this->getSourceId();
          $where    = $this->db->quoteInto('gto_id_survey IN (SELECT gsu_id_survey FROM gems__surveys WHERE gsu_id_source = ?)', $sourceId);
  
          $batch = $this->loader->getTracker()->recalculateTokens('sourceCheck' . $sourceId, $this->currentUser->getUserId(), $where);
  
          $title = sprintf($this->_('Checking all surveys in the %s source for answers.'),
                      $this->db->fetchOne("SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?", $sourceId));
          $this->_helper->batchRunner($batch, $title, $this->accesslog);
  
          $this->addSnippet('Survey\\CheckAnswersInformation',
                  'itemDescription', $this->_('This task checks all tokens using this source for answers .')
                  );
      }
code: public function checkAction()
      {
          $sourceId = $this->getSourceId();
          $where    = $this->db->quoteInto('gto_id_survey IN (SELECT gsu_id_survey FROM gems__surveys WHERE gsu_id_source = ?)', $sourceId);
  
          $batch = $this->loader->getTracker()->recalculateTokens('sourceCheck' . $sourceId, $this->currentUser->getUserId(), $where);
  
          $title = sprintf($this->_('Checking all surveys in the %s source for answers.'),
                      $this->db->fetchOne("SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?", $sourceId));
          $this->_helper->batchRunner($batch, $title, $this->accesslog);
  
          $this->addSnippet('Survey\\CheckAnswersInformation',
                  'itemDescription', $this->_('This task checks all tokens using this source for answers .')
                  );
      }
code_tokens: public function checkAction ( ) { $ sourceId = $ this -> getSourceId ( ) ; $ where = $ this -> db -> quoteInto ( 'gto_id_survey IN (SELECT gsu_id_survey FROM gems__surveys WHERE gsu_id_source = ?)' , $ sourceId ) ; $ batch = $ this -> loader -> getTracker ( ) -> recalculateTokens ( 'sourceCheck' . $ sourceId , $ this -> currentUser -> getUserId ( ) , $ where ) ; $ title = sprintf ( $ this -> _ ( 'Checking all surveys in the %s source for answers.' ) , $ this -> db -> fetchOne ( "SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?" , $ sourceId ) ) ; $ this -> _helper -> batchRunner ( $ batch , $ title , $ this -> accesslog ) ; $ this -> addSnippet ( 'Survey\\CheckAnswersInformation' , 'itemDescription' , $ this -> _ ( 'This task checks all tokens using this source for answers .' ) ) ; }
docstring: Check all the tokens for a single source
docstring_tokens: Check all the tokens for a single source