function views_handler_filter_field_partial_date_year::query in Partial Date 7
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
Overrides views_handler_filter_numeric::query
File
- includes/
partial_date.views.year_period_handler.inc, line 212
Class
- views_handler_filter_field_partial_date_year
- TODO: This is a placeholder to eventually provide a exposed list filter based on the field approximate year values.
Code
function query() {
$this
->ensure_my_table();
$field = "{$this->table_alias}.{$this->real_field}";
$info = $this
->operators();
if (!empty($info[$this->operator]['method'])) {
$this
->{$info[$this->operator]['method']}($field);
}
}