<?php

namespace ThurData\Servers\KerioEmail\App\UI\Admin\LoggerManager\Forms;

use ThurData\Servers\KerioEmail\Core\UI\Interfaces\AdminArea;
use \ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\BaseForm;
use \ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Hidden;
use \ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\FormConstants;

use \ThurData\Servers\KerioEmail\App\UI\Admin\LoggerManager\Providers\LoggerDataProvider;
/**
 * DOE DeleteLabelForm controler
 *
 * @autor ThurData <info@thurdata.ch>
 */
class DeleteLoggerForm extends BaseForm implements AdminArea
{
    protected $id    = 'deleteLoggerForm';
    protected $name  = 'deleteLoggerForm';
    protected $title = 'deleteLoggerForm';

    public function initContent()
    {
        $this->setFormType(FormConstants::DELETE);
        $this->dataProvider = new LoggerDataProvider();

        $this->setConfirmMessage('confirmLabelRemoval');
        
        $field = new Hidden();
        $field->setId('id');
        $field->setName('id');
        $this->addField($field);

        $this->loadDataToForm();
    }
}
