protected function isSubmitComplete() {
    if (!isset($_POST['submit'])) {
      return false;
    }
    foreach ($this->getInputParameters() as $parameter) {
      if ($parameter['required'] &&
          empty($_POST[$parameter['name']])) {
        return false;
      }
    }
    return true;
  }
protected function isSubmitComplete() {
    if (!isset($_POST['submit'])) {
      return false;
    }
    foreach ($this->getInputParameters() as $parameter) {
      if ($parameter['required'] &&
          empty($_POST[$parameter['name']])) {
        return false;
      }
    }
    return true;
  }
protected function isSubmitComplete ( ) { if ( ! isset ( $ _POST [ 'submit' ] ) ) { return false ; } foreach ( $ this -> getInputParameters ( ) as $ parameter ) { if ( $ parameter [ 'required' ] && empty ( $ _POST [ $ parameter [ 'name' ] ] ) ) { return false ; } } return true ; }
Checks if the form has been submitted and all required parameters are
set.
@return bool
Checks if the form has been submitted and all required parameters are set .