r58433 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58432‎ | r58433 | r58434 >
Date:18:22, 2 November 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added 'is_date' field
Modified paths:
  • /trunk/extensions/SemanticDrilldown/includes/SD_Filter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticDrilldown/includes/SD_Filter.php
@@ -11,6 +11,7 @@
1212 var $property;
1313 var $is_relation;
1414 var $is_boolean;
 15+ var $is_date;
1516 var $category;
1617 var $time_period = null;
1718 var $input_type = null;
@@ -42,6 +43,9 @@
4344 if ($types[0]->getWikiValue() == $datatypeLabels['_boo']) {
4445 $f->is_boolean = true;
4546 }
 47+ if ($types[0]->getWikiValue() == $datatypeLabels['_dat']) {
 48+ $f->is_date = true;
 49+ }
4650 }
4751 }
4852 $categories = SDUtils::getValuesForProperty($filter_name, SD_NS_FILTER, '_SD_VC', SD_SP_GETS_VALUES_FROM_CATEGORY, NS_CATEGORY);
@@ -70,7 +74,6 @@
7175 return $f;
7276 }
7377
74 -
7578 /**
7679 * Gets an array of the possible time period values (e.g., years,
7780 * years and months) for this filter, and, for each one,

Status & tagging log