Example #1
0
 /**
  * return true if must check constraints
  * @return bool
  */
 protected function checkConstraints()
 {
     if ($this->checkConstraints === null) {
         $submitter = $this->form->getSubmitter();
         if (is_object($submitter)) {
             $this->checkConstraints = $submitter->checkConstraints();
         } else {
             $this->checkConstraints = true;
         }
     }
     return $this->checkConstraints;
 }