Lines Matching refs:filters
19 //save filters
22 $filters = array_filter($raw_filters, function($v) {
26 if (empty($filters)) {
27 $filters['year'] = '-all';
30 header('Location: '.$this->url($this->get_action(), $filters));
32 $filters = $this->params;
35 $this->tpl->set_values($filters);
39 //some filters are just copied
40 $db_filters = array_filter($filters, function ($k) {
44 //-none filters become empty filters
57 if (isset($filters['year']) && $filters['year'] !== '-all') {
58 $year = $filters['year'];
66 if (isset($filters['coordinator']) &&
67 substr($filters['coordinator'], 0, 1) === '@') {
68 $group = substr($filters['coordinator'], 1);
72 if (isset($filters['original_poster']) &&
73 substr($filters['original_poster'], 0, 1) === '@') {
74 $group = substr($filters['original_poster'], 1);
78 if (isset($filters['title'])) {
79 $title = preg_replace('/\s/', '%', $filters['title']);
83 if (isset($filters['content'])) {
84 $content = preg_replace('/\s/', '%', $filters['content']);
88 if (isset($filters['has_corrective'])) {
92 if (isset($filters['has_preventive'])) {
98 if (isset($filters['sort_open']) && $filters['sort_open'] == 'on') {