ContactFeatures.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:34
  14. * Class ContactFeatures
  15. */
  16. class ContactFeatures extends BoxSectionExtended implements AdminArea
  17. {
  18. protected $id = 'contactFeatures';
  19. protected $name = 'contactFeatures';
  20. protected $title = 'contactFeatures';
  21. public function initContent()
  22. {
  23. $this
  24. ->addSection($this->getLeftSection())
  25. ;
  26. }
  27. public function getLeftSection()
  28. {
  29. $leftSection = new HalfPageSection('left');
  30. $field = new Switcher('kerioFeatureDistributionListFolderEnabled');
  31. $leftSection->addField($field);
  32. return $leftSection;
  33. }
  34. }