public function checkTokenAnswersAction()
    {
        $token       = $this->getToken();
        $where       = $this->db->quoteInto('gto_id_token = ?', $token->getTokenId());
        $batch = $this->loader->getTracker()->recalculateTokens(
                'answersCheckToken__' . $token->getTokenId(),
                $this->currentUser->getUserId(),
                $where
                );
        $batch->autoStart = true;

        $title = sprintf(
                $this->_("Checking the token %s for answers."),
                $token->getTokenId()
                );
        $this->_helper->BatchRunner($batch, $title, $this->accesslog);

        $this->addSnippet('Survey\\CheckAnswersInformation',
                'itemDescription', $this->_('This task checks one token for answers.')
                );
    }
public function checkTokenAnswersAction()
    {
        $token       = $this->getToken();
        $where       = $this->db->quoteInto('gto_id_token = ?', $token->getTokenId());
        $batch = $this->loader->getTracker()->recalculateTokens(
                'answersCheckToken__' . $token->getTokenId(),
                $this->currentUser->getUserId(),
                $where
                );
        $batch->autoStart = true;

        $title = sprintf(
                $this->_("Checking the token %s for answers."),
                $token->getTokenId()
                );
        $this->_helper->BatchRunner($batch, $title, $this->accesslog);

        $this->addSnippet('Survey\\CheckAnswersInformation',
                'itemDescription', $this->_('This task checks one token for answers.')
                );
    }
public function checkTokenAnswersAction ( ) { $ token = $ this -> getToken ( ) ; $ where = $ this -> db -> quoteInto ( 'gto_id_token = ?' , $ token -> getTokenId ( ) ) ; $ batch = $ this -> loader -> getTracker ( ) -> recalculateTokens ( 'answersCheckToken__' . $ token -> getTokenId ( ) , $ this -> currentUser -> getUserId ( ) , $ where ) ; $ batch -> autoStart = true ; $ title = sprintf ( $ this -> _ ( "Checking the token %s for answers." ) , $ token -> getTokenId ( ) ) ; $ this -> _helper -> BatchRunner ( $ batch , $ title , $ this -> accesslog ) ; $ this -> addSnippet ( 'Survey\\CheckAnswersInformation' , 'itemDescription' , $ this -> _ ( 'This task checks one token for answers.' ) ) ; }
Check the tokens for a single token
Check the tokens for a single token