private function applyLegacyFilter($pKey, $pVal, CronkGridTemplateWorker $template) { $m = array(); if (preg_match('@^(.+)-value$@', $pKey, $m)) { // Fieldname (xml field name) $name = $m[1]; // The value $val = $pVal; // Operator $op = array_key_exists($name . '-operator', $this->params_array) ? $this->params_array[$name . '-operator'] : null; // Add a template worker condition $template->setCondition($name, $val, $op); } }