Esempio n. 1
0
 /**
  * Returns a snippet name that can be used to display the answers to the token or nothing.
  *
  * @param \Gems_Tracker_Token $token
  * @return array Of snippet names
  */
 public function getAnswerSnippetNames(\Gems_Tracker_Token $token)
 {
     if (isset($this->_gemsSurvey['gsu_display_event'])) {
         $event = $this->events->loadSurveyDisplayEvent($this->_gemsSurvey['gsu_display_event']);
         return $event->getAnswerDisplaySnippets($token);
     }
 }
 /**
  * Returns a snippet name that can be used to display the answers to the token or nothing.
  *
  * @param \Gems_Tracker_Token $token
  * @return array Of snippet names
  */
 public function getRoundAnswerSnippets(\Gems_Tracker_Token $token)
 {
     $this->_ensureRounds();
     $roundId = $token->getRoundId();
     if (isset($this->_rounds[$roundId]['gro_display_event']) && $this->_rounds[$roundId]['gro_display_event']) {
         $event = $this->events->loadSurveyDisplayEvent($this->_rounds[$roundId]['gro_display_event']);
         return $event->getAnswerDisplaySnippets($token);
     }
 }