Public Member Functions | |
| getTimePeriodValues () | |
| Gets an array of the possible time period values (e.g., years, years and months) for this filter, and, for each one, the number of pages that match that time period. | |
| getAllValues () | |
| Gets an array of all values that the property belonging to this filter has, and, for each one, the number of pages that match that value. | |
| createTempTable () | |
| Creates a temporary database table, semantic_drilldown_filter_values, that holds every value held by any page in the wiki that matches the property associated with this filter. | |
| dropTempTable () | |
| Deletes the temporary table. | |
Static Public Member Functions | |
| static | loadAllFromPageSchema ($psSchemaObj) |
| static | load ($filter_name) |
Public Attributes | |
| $name | |
| $property | |
| $escaped_property | |
| $is_relation | |
| $is_boolean | |
| $is_date | |
| $category | |
| $time_period = null | |
| $input_type = null | |
| $allowed_values | |
| $possible_applied_filters = array() | |
a single page in the "Filter:" namespace
Definition at line 9 of file SD_Filter.php.
| static SDFilter::loadAllFromPageSchema | ( | $ | psSchemaObj | ) | [static] |
Definition at line 22 of file SD_Filter.php.
References SDUtils::getCategoryChildren().
Referenced by SDUtils::loadFiltersForCategory().
| static SDFilter::load | ( | $ | filter_name | ) | [static] |
Definition at line 67 of file SD_Filter.php.
References $store, SDAppliedFilter::create(), SDUtils::getCategoryChildren(), SDUtils::getValuesForProperty(), SMWPropertyValue::makeUserProperty(), and smwfGetStore().
Referenced by SDUtils::loadFiltersForCategory().
| SDFilter::getTimePeriodValues | ( | ) |
Gets an array of the possible time period values (e.g., years, years and months) for this filter, and, for each one, the number of pages that match that time period.
Definition at line 144 of file SD_Filter.php.
References END, and SDUtils::monthToString().
Referenced by getAllValues().
| SDFilter::getAllValues | ( | ) |
Gets an array of all values that the property belonging to this filter has, and, for each one, the number of pages that match that value.
Definition at line 185 of file SD_Filter.php.
References END, and getTimePeriodValues().
| SDFilter::createTempTable | ( | ) |
Creates a temporary database table, semantic_drilldown_filter_values, that holds every value held by any page in the wiki that matches the property associated with this filter.
This table is useful both for speeding up later queries (at least, that's the hope) and for getting the set of 'None' values.
Definition at line 237 of file SD_Filter.php.
References END.
| SDFilter::dropTempTable | ( | ) |
| SDFilter::$name |
Definition at line 10 of file SD_Filter.php.
| SDFilter::$property |
Definition at line 11 of file SD_Filter.php.
| SDFilter::$escaped_property |
Definition at line 12 of file SD_Filter.php.
| SDFilter::$is_relation |
Definition at line 13 of file SD_Filter.php.
| SDFilter::$is_boolean |
Definition at line 14 of file SD_Filter.php.
| SDFilter::$is_date |
Definition at line 15 of file SD_Filter.php.
| SDFilter::$category |
Definition at line 16 of file SD_Filter.php.
| SDFilter::$time_period = null |
Definition at line 17 of file SD_Filter.php.
| SDFilter::$input_type = null |
Definition at line 18 of file SD_Filter.php.
| SDFilter::$allowed_values |
Definition at line 19 of file SD_Filter.php.
| SDFilter::$possible_applied_filters = array() |
Definition at line 20 of file SD_Filter.php.
1.5.6