MimeFeatures.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections;
  3. use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Sections\BoxSectionExtended;
  4. use ThurData\Servers\KerioEmail\Core\UI\Interfaces\AdminArea;
  5. use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Switcher;
  6. use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\BoxSection;
  7. use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\HalfPageSection;
  8. /**
  9. *
  10. * Created by PhpStorm.
  11. * User: Tomasz Bielecki ( tomasz.bi@thurdata.com )
  12. * Date: 29.08.19
  13. * Time: 08:35
  14. * Class MimeFeatures
  15. */
  16. class MimeFeatures extends BoxSectionExtended implements AdminArea
  17. {
  18. protected $id = 'mimeFeatures';
  19. protected $name = 'mimeFeatures';
  20. protected $title = 'mimeFeatures';
  21. public function initContent()
  22. {
  23. $this
  24. ->addSection($this->getLeftSection())
  25. ;
  26. }
  27. /**
  28. * @return HalfPageSection
  29. */
  30. public function getLeftSection()
  31. {
  32. $left = new HalfPageSection('left');
  33. $field = new Switcher('kerioFeatureSMIMEEnabled');
  34. $left->addField($field);
  35. return $left;
  36. }
  37. }