From: <gem...@li...> - 2012-06-06 12:12:13
|
Revision: 738 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=738&view=rev Author: michieltcs Date: 2012-06-06 12:12:07 +0000 (Wed, 06 Jun 2012) Log Message: ----------- Add filtering method (useful for overriding classes) 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-06-05 13:33:53 UTC (rev 737) +++ trunk/library/classes/Gems/Default/RespondentExportAction.php 2012-06-06 12:12:07 UTC (rev 738) @@ -138,6 +138,18 @@ return $pdfContents; } + + /** + * Determines if this particular token should be included + * in the report + * + * @param Gems_Tracker_Token $token + * @return boolean This dummy implementation always returns true + */ + protected function _isTokenInFilter(Gems_Tracker_Token $token) + { + return true; + } /** * Exports all the tokens of a single track, grouped by round @@ -160,6 +172,11 @@ $this->html->br(); while ($token) { + if (!$this->_isTokenInFilter($token)) { + $token = $token->getNextToken(); + continue; + } + $status = $this->_('Open'); if ($token->isCompleted()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |