EditAdditionalSection.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\App\UI\Client\Setting\Sections;
  3. use ThurData\Servers\KerioEmail\App\Traits\FormExtendedTrait;
  4. use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Sections\FreeFieldsSection;
  5. use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Hidden;
  6. use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Switcher;
  7. /**
  8. *
  9. * Created by PhpStorm.
  10. * User: ThurData
  11. * Date: 12.11.19
  12. * Time: 13:52
  13. * Class EditAdditionalSection
  14. */
  15. class EditAdditionalSection extends FreeFieldsSection
  16. {
  17. protected $id = 'editAdditionalSection';
  18. protected $name = 'editAdditionalSection';
  19. use FormExtendedTrait;
  20. public function initContent()
  21. {
  22. $domain = $this->getWhmcsParamByKey('domain');
  23. $maildomain = $this->getRequestValue('actionElementId');
  24. logModuleCall(
  25. 'kerioEmail',
  26. __FUNCTION__,
  27. $domain,
  28. 'Debug Error',
  29. $maildomain
  30. );
  31. $dkimsigenabled = new Switcher('dkimsigenabled');
  32. $this->addField($dkimsigenabled);
  33. $tfaenabled = new Switcher('tfaenabled');
  34. $this->addField($tfaenabled);
  35. $this->addField(new Hidden('domainid'));
  36. }
  37. }