<?php

namespace ModulesGarden\Servers\ZimbraEmail\App\UI\Admin\ProductConfiguration\Pages\Sections;


use ModulesGarden\Servers\ZimbraEmail\App\UI\Admin\Custom\Sections\BoxSectionExtended;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Interfaces\AdminArea;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Fields\Switcher;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Sections\BoxSection;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Sections\HalfPageSection;

/**
 *
 * Created by PhpStorm.
 * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
 * Date: 29.08.19
 * Time: 08:34
 * Class ContactFeatures
 */
class ContactFeatures extends BoxSectionExtended implements AdminArea
{
    protected $id       = 'contactFeatures';
    protected $name     = 'contactFeatures';
    protected $title    = 'contactFeatures';

    public function initContent()
    {
        $this
            ->addSection($this->getLeftSection())
        ;

    }
    public function getLeftSection()
    {
        $leftSection = new HalfPageSection('left');

        $field = new Switcher('zimbraFeatureDistributionListFolderEnabled');
        $leftSection->addField($field);

        return $leftSection;
    }


}