validate() public method

Performs the server side validation.
public validate ( array $controls = NULL ) : void
$controls array
return void
コード例 #1
0
ファイル: Form.php プロジェクト: Richmond77/learning-nette
 public function validate(array $controls = NULL)
 {
     $this->cleanErrors();
     if ($controls === NULL && $this->submittedBy instanceof ISubmitterControl) {
         $controls = $this->submittedBy->getValidationScope();
     }
     $this->validateMaxPostSize();
     parent::validate($controls);
 }