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 .')
                );
    }
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 .')
                );
    }
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 .' ) ) ; }
Check all the tokens for a single source
Check all the tokens for a single source