<?php
namespace ModulesGarden\Servers\OpenXchange\App\UI\Admin\ProductConfiguration\Pages;

use ModulesGarden\Servers\OpenXchange\Core\UI\Interfaces\AdminArea;
use ModulesGarden\Servers\OpenXchange\Core\UI\Widget\Forms\FormIntegration;
use ModulesGarden\Servers\OpenXchange\App\Services\ConfigurableOptions\ConfigurableOptions;
use ModulesGarden\Servers\OpenXchange\App\UI\Admin\ProductConfiguration\Pages\Sections\ProductSettings;
use ModulesGarden\Servers\OpenXchange\App\UI\Admin\ProductConfiguration\Pages\Sections\ConfigurablesOptions;
use ModulesGarden\Servers\OpenXchange\App\UI\Admin\ProductConfiguration\Providers\ProductConfigurationDataProvider;
/**
 *
 * Created by PhpStorm.
 * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
 * 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());

        /** zimbra setting section **/
        $this->addSection(new ProductSettings());

        $this->loadDataToForm();
    }

}