Пример #1
0
 public function beforeValidate()
 {
     $r = parent::beforeValidate();
     if (!$this->data_filter_id || !$this->filter_id || !$this->icon || !$this->label || !$this->order_num) {
         return false;
     }
     return $r;
 }
 public function beforeValidate()
 {
     $r = parent::beforeValidate();
     if (!$this->id || !$this->name || !$this->order_num) {
         return false;
     }
     return $r;
 }