function result() { $surveyID = $this->attribute('survey_id'); $survey = eZSurvey::fetch($surveyID); $contentObjectID = $survey->attribute('contentobject_id'); $contentClassAttributeID = $survey->attribute('contentclassattribute_id'); $languageCode = $survey->attribute('language_code'); $result = eZSurveyEntry::fetchResult($this, $contentObjectID, $contentClassAttributeID, $languageCode, false, 5); return $result['result']; }