Ejemplo n.º 1
0
 public function process(array $data, $field, RM_Base_iResult $res)
 {
     $cur = M('Base')->result();
     foreach ($this->_items as $item) {
         if ($item->process($data, $field, $cur)) {
             foreach ($cur->getWarnings() as $_) {
                 $res->warning($_['code'], $_['place'], $_);
             }
             return TRUE;
         }
     }
     foreach ($cur->getWarnings() as $_) {
         $res->warning($_['code'], $_['place'], $_);
     }
     foreach ($cur->getErrors() as $_) {
         $res->error($_['code'], $_['place'], $_);
     }
     return FALSE;
 }