original_string: protected function _exportTrackTokens(\Gems_Tracker_RespondentTrack $track)
      {
          $groupSurveys = $this->_group;
          $token        = $track->getFirstToken();
          $engine       = $track->getTrackEngine();
          $surveys      = array();
  
          $table = $this->html->table(array('class' => 'browser table'));
          $table->th($this->_('Survey'))
                ->th($this->_('Round'))
                ->th($this->_('Token'))
                ->th($this->_('Status'));
          $this->html->br();
  
          while ($token) {
              //Should this token be in the list?
              if (!$this->_isTokenInFilter($token)) {
                  $token = $token->getNextToken();
                  continue;
              }
  
              $table->tr()->td($token->getSurveyName())
                          ->td(($engine->getTrackType() == 'T' ? $token->getRoundDescription() : $this->_('Single Survey')))
                          ->td(strtoupper($token->getTokenId()))
                          ->td($token->getStatus());
  
              //Should we display the answers?
              if (!$this->_displayToken($token)) {
                  $token = $token->getNextToken();
                  continue;
              }
  
              $showToken = false;
              if (! $groupSurveys) {
                  // For single survey tracks or when $groupSurvey === false we show all tokens
                  $showToken = true;
              } else {
                  // For multi survey tracks and $groupSurveys === true, we show only the first token
                  // as the snippet takes care of showing the other tokens
                  if (!isset($surveys[$token->getSurveyId()])) {
                      $showToken = true;
                      $surveys[$token->getSurveyId()] = 1;
                  }
              }
  
              if ($showToken) {
                  $params = array(
                      'token'          => $token,
                      'tokenId'        => $token->getTokenId(),
                      'showHeaders'    => false,
                      'showButtons'    => false,
                      'showSelected'   => false,
                      'showTakeButton' => false,
                      'grouped'        => $groupSurveys);
  
                  $snippets = $token->getAnswerSnippetNames();
  
                  if (!is_array($snippets)) {
                      $snippets = array($snippets);
                  }
  
                  list($snippets, $snippetParams) = \MUtil_Ra::keySplit($snippets);
                  $params = $params + $snippetParams;
  
                  $this->html->snippet('Export_SurveyHeaderSnippet', 'token', $token);
  
                  foreach($snippets as $snippet) {
                      $this->html->snippet($snippet, $params);
                  }
  
                  $this->html->br();
              }
  
              $token = $token->getNextToken();
          }
      }
code: protected function _exportTrackTokens(\Gems_Tracker_RespondentTrack $track)
      {
          $groupSurveys = $this->_group;
          $token        = $track->getFirstToken();
          $engine       = $track->getTrackEngine();
          $surveys      = array();
  
          $table = $this->html->table(array('class' => 'browser table'));
          $table->th($this->_('Survey'))
                ->th($this->_('Round'))
                ->th($this->_('Token'))
                ->th($this->_('Status'));
          $this->html->br();
  
          while ($token) {
              //Should this token be in the list?
              if (!$this->_isTokenInFilter($token)) {
                  $token = $token->getNextToken();
                  continue;
              }
  
              $table->tr()->td($token->getSurveyName())
                          ->td(($engine->getTrackType() == 'T' ? $token->getRoundDescription() : $this->_('Single Survey')))
                          ->td(strtoupper($token->getTokenId()))
                          ->td($token->getStatus());
  
              //Should we display the answers?
              if (!$this->_displayToken($token)) {
                  $token = $token->getNextToken();
                  continue;
              }
  
              $showToken = false;
              if (! $groupSurveys) {
                  // For single survey tracks or when $groupSurvey === false we show all tokens
                  $showToken = true;
              } else {
                  // For multi survey tracks and $groupSurveys === true, we show only the first token
                  // as the snippet takes care of showing the other tokens
                  if (!isset($surveys[$token->getSurveyId()])) {
                      $showToken = true;
                      $surveys[$token->getSurveyId()] = 1;
                  }
              }
  
              if ($showToken) {
                  $params = array(
                      'token'          => $token,
                      'tokenId'        => $token->getTokenId(),
                      'showHeaders'    => false,
                      'showButtons'    => false,
                      'showSelected'   => false,
                      'showTakeButton' => false,
                      'grouped'        => $groupSurveys);
  
                  $snippets = $token->getAnswerSnippetNames();
  
                  if (!is_array($snippets)) {
                      $snippets = array($snippets);
                  }
  
                  list($snippets, $snippetParams) = \MUtil_Ra::keySplit($snippets);
                  $params = $params + $snippetParams;
  
                  $this->html->snippet('Export_SurveyHeaderSnippet', 'token', $token);
  
                  foreach($snippets as $snippet) {
                      $this->html->snippet($snippet, $params);
                  }
  
                  $this->html->br();
              }
  
              $token = $token->getNextToken();
          }
      }
code_tokens: protected function _exportTrackTokens ( \ Gems_Tracker_RespondentTrack $ track ) { $ groupSurveys = $ this -> _group ; $ token = $ track -> getFirstToken ( ) ; $ engine = $ track -> getTrackEngine ( ) ; $ surveys = array ( ) ; $ table = $ this -> html -> table ( array ( 'class' => 'browser table' ) ) ; $ table -> th ( $ this -> _ ( 'Survey' ) ) -> th ( $ this -> _ ( 'Round' ) ) -> th ( $ this -> _ ( 'Token' ) ) -> th ( $ this -> _ ( 'Status' ) ) ; $ this -> html -> br ( ) ; while ( $ token ) { //Should this token be in the list? if ( ! $ this -> _isTokenInFilter ( $ token ) ) { $ token = $ token -> getNextToken ( ) ; continue ; } $ table -> tr ( ) -> td ( $ token -> getSurveyName ( ) ) -> td ( ( $ engine -> getTrackType ( ) == 'T' ? $ token -> getRoundDescription ( ) : $ this -> _ ( 'Single Survey' ) ) ) -> td ( strtoupper ( $ token -> getTokenId ( ) ) ) -> td ( $ token -> getStatus ( ) ) ; //Should we display the answers? if ( ! $ this -> _displayToken ( $ token ) ) { $ token = $ token -> getNextToken ( ) ; continue ; } $ showToken = false ; if ( ! $ groupSurveys ) { // For single survey tracks or when $groupSurvey === false we show all tokens $ showToken = true ; } else { // For multi survey tracks and $groupSurveys === true, we show only the first token // as the snippet takes care of showing the other tokens if ( ! isset ( $ surveys [ $ token -> getSurveyId ( ) ] ) ) { $ showToken = true ; $ surveys [ $ token -> getSurveyId ( ) ] = 1 ; } } if ( $ showToken ) { $ params = array ( 'token' => $ token , 'tokenId' => $ token -> getTokenId ( ) , 'showHeaders' => false , 'showButtons' => false , 'showSelected' => false , 'showTakeButton' => false , 'grouped' => $ groupSurveys ) ; $ snippets = $ token -> getAnswerSnippetNames ( ) ; if ( ! is_array ( $ snippets ) ) { $ snippets = array ( $ snippets ) ; } list ( $ snippets , $ snippetParams ) = \ MUtil_Ra :: keySplit ( $ snippets ) ; $ params = $ params + $ snippetParams ; $ this -> html -> snippet ( 'Export_SurveyHeaderSnippet' , 'token' , $ token ) ; foreach ( $ snippets as $ snippet ) { $ this -> html -> snippet ( $ snippet , $ params ) ; } $ this -> html -> br ( ) ; } $ token = $ token -> getNextToken ( ) ; } }
docstring: Exports all the tokens of a single track, grouped by round
  
  @param \Gems_Tracker_RespondentTrack $track
docstring_tokens: Exports all the tokens of a single track grouped by round