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