FormIntegration.php 927 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\Core\UI\Widget\Forms;
  3. use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Hidden;
  4. /**
  5. * FormIntegration controller
  6. *
  7. * This form does not contain a <form> tag, this is correct for implementing a FW form functionalities
  8. * to fields and sections that are injected into already existing WHMCS forms.
  9. *
  10. * @autor ThurData <info@thrudata.ch>
  11. */
  12. class FormIntegration extends BaseStandaloneForm
  13. {
  14. protected $id = 'formIntegration';
  15. protected $name = 'formIntegration';
  16. //do not overwrite this function
  17. protected function preInitContent()
  18. {
  19. $this->setSubmit(null);
  20. $formAction = new Hidden('mgformtype');
  21. $formAction->setDefaultValue(FormConstants::UPDATE);
  22. $this->addField($formAction);
  23. $formAction = new Hidden('ajax');
  24. $formAction->setDefaultValue(1);
  25. $this->addField($formAction);
  26. }
  27. }