http://www.mediawiki.org/wiki/Special:Code/MediaWiki/58433
Revision: 58433 Author: yaron Date: 2009-11-02 18:22:24 +0000 (Mon, 02 Nov 2009) Log Message: ----------- Added 'is_date' field Modified Paths: -------------- trunk/extensions/SemanticDrilldown/includes/SD_Filter.php Modified: trunk/extensions/SemanticDrilldown/includes/SD_Filter.php =================================================================== --- trunk/extensions/SemanticDrilldown/includes/SD_Filter.php 2009-11-02 18:21:44 UTC (rev 58432) +++ trunk/extensions/SemanticDrilldown/includes/SD_Filter.php 2009-11-02 18:22:24 UTC (rev 58433) @@ -11,6 +11,7 @@ var $property; var $is_relation; var $is_boolean; + var $is_date; var $category; var $time_period = null; var $input_type = null; @@ -42,6 +43,9 @@ if ($types[0]->getWikiValue() == $datatypeLabels['_boo']) { $f->is_boolean = true; } + if ($types[0]->getWikiValue() == $datatypeLabels['_dat']) { + $f->is_date = true; + } } } $categories = SDUtils::getValuesForProperty($filter_name, SD_NS_FILTER, '_SD_VC', SD_SP_GETS_VALUES_FROM_CATEGORY, NS_CATEGORY); @@ -70,7 +74,6 @@ return $f; } - /** * Gets an array of the possible time period values (e.g., years, * years and months) for this filter, and, for each one, _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs