<?php

namespace ModulesGarden\HostingQuotaNotifications\App\UI\LoggerManager\Buttons;

use \ModulesGarden\HostingQuotaNotifications\Core\UI\Widget\Buttons\BaseModalButton;

use \ModulesGarden\HostingQuotaNotifications\App\UI\LoggerManager\Modals\DeleteAllLoggersModal;

use \ModulesGarden\HostingQuotaNotifications\Core\UI\Interfaces\AdminArea;
/**
 * Description of DeleteAllLoggersButton
 *
 * @author Artur Pilch <artur.pi@modulesgarden.com>
 */
class DeleteAllLoggersButton extends BaseModalButton implements AdminArea
{
    protected $id    = 'deleteAllLoggersButton';
    protected $name  = 'deleteAllLoggersButton';
    protected $title = 'deleteAllLoggersButton';

    protected $class = ['btn btn--danger'];
    protected $icon = 'btn__icon zmdi zmdi-delete';
    
    public function initContent()
    {
        $this->htmlAttributes['@click'] = 'loadModal($event, \'' . $this->id . '\')';

        $this->setModal(new DeleteAllLoggersModal());
    }
}
