Example #1
0
 /**
  * @return bool
  */
 public function IsValid()
 {
     if (parent::IsValid()) {
         Log::Debug('Action passed all validations');
         return true;
     }
     $errors = new ActionErrors();
     foreach ($this->smarty->failedValidators as $id => $validator) {
         Log::Debug('Failed validator %s', $id);
         $errors->Add($id, $validator->Messages());
     }
     $this->SetJson($errors);
     return false;
 }
Example #2
0
 public function IsValid()
 {
     return $this->page->IsValid();
 }