/** * Get the TrackCompletedEvent for this trackId * * @return \Gems_Event_TrackCompletedEventInterface|null */ public function getTrackCompletionEvent() { if (isset($this->_trackData['gtr_completed_event']) && $this->_trackData['gtr_completed_event']) { return $this->events->loadTrackCompletionEvent($this->_trackData['gtr_completed_event']); } }
/** * Return the Survey Completed event * * @return \Gems_Event_SurveyCompletedEventInterface event instance or null */ public function getSurveyCompletedEvent() { if ($this->_gemsSurvey['gsu_completed_event']) { return $event = $this->events->loadSurveyCompletionEvent($this->_gemsSurvey['gsu_completed_event']); } }