/** * @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; }
public function IsValid() { return $this->page->IsValid(); }