Lines Matching refs:filters
36 //save filters
39 $filters = array_filter($raw_filters, function($v) {
43 if (empty($filters)) {
44 $filters['year'] = '-all';
47 header('Location: '.$this->url('tasks', $filters));
49 $filters = $this->params;
52 $this->tpl->set_values($filters);
56 //some filters are just copied
57 $db_filters = array_filter($filters, function ($k) {
61 //-none filters become empty filters
69 if (isset($filters['year']) && $filters['year'] !== '-all') {
70 $year = $filters['year'];
74 if (isset($filters['month']) && $filters['month'] !== '-all') {
75 $start_month = $end_month = sprintf("%02d", (int)$filters['month']);
81 $db_filters[$filters['date_type']] = array('BETWEEN', array($start_day, $end_day), array('date'));
84 if (isset($filters['original_poster']) &&
85 substr($filters['original_poster'], 0, 1) === '@') {
86 $group = substr($filters['original_poster'], 1);
90 if (isset($filters['assignee']) &&
91 substr($filters['assignee'], 0, 1) === '@') {
92 $group = substr($filters['assignee'], 1);
96 if (isset($filters['content'])) {
97 $content = preg_replace('/\s/', '%', $filters['content']);