/** * Filter the data, 'text' is a raw Column (because only administrators use this) */ public function filter($data) { settype($data, 'array'); //force to array if ($data['text']) { $this->getColumn('text')->filter = KFactory::tmp('lib.koowa.filter.raw'); } return parent::filter($data); }
public function filter($data) { if (isset($data['operations']) && is_array($data['operations'])) { $result = 0; foreach ($data['operations'] as $operation) { $result += $operation; } $data['operations'] = $result; } $data = parent::filter($data); return $data; }