From: <gem...@li...> - 2012-04-30 18:06:49
|
Revision: 646 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=646&view=rev Author: matijsdejong Date: 2012-04-30 18:06:43 +0000 (Mon, 30 Apr 2012) Log Message: ----------- Extra filter that is often used. Modified Paths: -------------- trunk/library/classes/Gems/Tracker/Token/TokenSelect.php Modified: trunk/library/classes/Gems/Tracker/Token/TokenSelect.php =================================================================== --- trunk/library/classes/Gems/Tracker/Token/TokenSelect.php 2012-04-26 15:44:13 UTC (rev 645) +++ trunk/library/classes/Gems/Tracker/Token/TokenSelect.php 2012-04-30 18:06:43 UTC (rev 646) @@ -398,6 +398,21 @@ } /** + * Select only completed tokens + * + * Comleted is token has a completiondate + * + * @return Gems_Tracker_Token_TokenSelect + */ + public function onlyCompleted() { + + $this->sql_select + ->where('gto_completion_time IS NOT NULL'); + + return $this; + } + + /** * Select tokens with receptioncodes with the success status 1 * * @return Gems_Tracker_Token_TokenSelect This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |