<?php
namespace ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages;

use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\CalendarFeatures;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\ClassOfServiceFeatures;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\ClientAreaFeatures;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\ConfigurableOptions;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\ContactFeatures;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\EssentialFeatures;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\GeneralFeatures;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\MailServiceFeatures;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\MimeFeatures;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\SearchFeatures;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Pages\Sections\KerioSettings;
use ThurData\Servers\KerioEmail\App\UI\Admin\ProductConfiguration\Providers\ProductConfigurationDataProvider;
use ThurData\Servers\KerioEmail\Core\UI\Interfaces\AdminArea;
use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\FormIntegration;

/**
 *
 * Created by PhpStorm.
 * User: ThurData
 * Date: 28.08.19
 * Time: 09:12
 * Class ConfigForm
 */
class ConfigForm extends FormIntegration implements AdminArea
{
    protected $id    = 'configForm';
    protected $name  = 'configForm';
    protected $title = 'configForm';

    public function initContent()
    {
        /** add data provider **/
        $this->setProvider(new ProductConfigurationDataProvider());

        /** kerio setting section **/
        $this->addSection(new KerioSettings());

        /** available features in ca **/
        $this->addSection(new ClientAreaFeatures());

        /** configurable option section**/
        $this->addSection(new ConfigurableOptions());

        $this->loadDataToForm();
    }

}