Index: trunk/extensions/SemanticDrilldown/includes/SD_AppliedFilter.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | var $lower_date_string; |
17 | 17 | var $upper_date_string; |
18 | 18 | |
19 | | - function create( $filter, $values, $search_term = null, $lower_date = null, $upper_date = null ) { |
| 19 | + static function create( $filter, $values, $search_term = null, $lower_date = null, $upper_date = null ) { |
20 | 20 | $af = new SDAppliedFilter(); |
21 | 21 | $af->filter = $filter; |
22 | 22 | $af->search_term = htmlspecialchars( str_replace( '_', ' ', $search_term ) ); |
Index: trunk/extensions/SemanticDrilldown/includes/SD_Filter.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | var $allowed_values; |
20 | 20 | var $possible_applied_filters = array(); |
21 | 21 | |
22 | | - function load( $filter_name ) { |
| 22 | + static function load( $filter_name ) { |
23 | 23 | $f = new SDFilter(); |
24 | 24 | $f->name = $filter_name; |
25 | 25 | $properties_used = SDUtils::getValuesForProperty( $filter_name, SD_NS_FILTER, '_SD_CP', SD_SP_COVERS_PROPERTY, SMW_NS_PROPERTY ); |
Index: trunk/extensions/SemanticDrilldown/includes/SD_FilterValue.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | var $year = null; |
18 | 18 | var $month = null; |
19 | 19 | |
20 | | - function create( $actual_val, $filter_time_period = null ) { |
| 20 | + static function create( $actual_val, $filter_time_period = null ) { |
21 | 21 | $fv = new SDFilterValue(); |
22 | 22 | $fv->text = htmlspecialchars( $actual_val ); |
23 | 23 | |