Example #1
0
 private function validateForm()
 {
     if (!$this->form->isSubmitted()) {
         return;
     }
     if ($this->form->existsField('certificate')) {
         return $this->validateAuthConfigFileForm();
     }
     if ($this->form->existsField('account')) {
         return $this->validateAccountForm();
     }
     if ($this->form->existsField('web_property_id')) {
         return $this->validatePropertyForm();
     }
     if ($this->form->existsField('profile')) {
         return $this->validateProfileForm();
     }
 }