From: <gem...@li...> - 2012-05-31 09:16:10
|
Revision: 714 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=714&view=rev Author: michieltcs Date: 2012-05-31 09:16:04 +0000 (Thu, 31 May 2012) Log Message: ----------- Move names of survey snippets to properties Modified Paths: -------------- trunk/library/classes/Gems/Default/RespondentExportAction.php Modified: trunk/library/classes/Gems/Default/RespondentExportAction.php =================================================================== --- trunk/library/classes/Gems/Default/RespondentExportAction.php 2012-05-31 09:11:51 UTC (rev 713) +++ trunk/library/classes/Gems/Default/RespondentExportAction.php 2012-05-31 09:16:04 UTC (rev 714) @@ -48,6 +48,9 @@ protected $_wkhtmltopdfLocation = ""; + protected $_groupedSurveySnippet = 'AnswerModelSnippet'; + protected $_singleSurveySnippet = 'TrackAnswersModelSnippet'; + public function init() { parent::init(); @@ -156,7 +159,7 @@ if (($engine->getTrackType() == 'S' || !$groupSurveys) && $token->isCompleted()) { $this->html->span()->b($token->getSurveyName() . ($token->getRoundDescription() ? ' (' . $token->getRoundDescription() . ')' : '')); - $this->addSnippet('AnswerModelSnippet', 'token', $token, 'tokenId', $token->getTokenId(), + $this->addSnippet($this->_singleSurveySnippet, 'token', $token, 'tokenId', $token->getTokenId(), 'showHeaders', false, 'showButtons', false, 'showSelected', false, 'showTakeButton', false); $this->html->br(); @@ -165,7 +168,7 @@ $surveys[$token->getSurveyId()] = true; $this->html->span()->b($token->getSurveyName()); - $this->addSnippet('TrackAnswersModelSnippet', 'token', $token, 'tokenId', $token->getTokenId(), + $this->addSnippet($this->_groupedSurveySnippet, 'token', $token, 'tokenId', $token->getTokenId(), 'showHeaders', false, 'showButtons', false, 'showSelected', false, 'showTakeButton', false); $this->html->br(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |