Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 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;
 }