<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace ModulesGarden\HostingQuotaNotifications\App\UI\Groups\Pages\Configuration\Tiered;


use ModulesGarden\HostingQuotaNotifications\Core\UI\Widget\DataTable\DataProviders\DataProvider;
use \ModulesGarden\HostingQuotaNotifications\Core\UI\Widget\DataTable\DataTable;
use \ModulesGarden\HostingQuotaNotifications\Core\UI\Widget\DataTable\Column;
use \ModulesGarden\HostingQuotaNotifications\Core\UI\Interfaces\AdminArea;
use \ModulesGarden\HostingQuotaNotifications\Core\UI\Widget\DataTable\DataProviders\Providers\ArrayDataProvider;
use \ModulesGarden\HostingQuotaNotifications\App\UI\Groups\Providers\Configuration\StepsProvider;
use \ModulesGarden\HostingQuotaNotifications\App\Libs\GroupConfiguration\Constants;
use \ModulesGarden\HostingQuotaNotifications\App\UI\Groups\Buttons\Configuration\AddStepButton;
use \ModulesGarden\HostingQuotaNotifications\App\UI\Groups\Buttons\Configuration\StepDeleteButton;
use \ModulesGarden\HostingQuotaNotifications\App\UI\Groups\Pages\Configuration\StepBase;

/**
 * Description of Base
 *
 * @author Artur Pilch <artur.pi@modulesgarden.com>
 */
class Base extends StepBase implements AdminArea
{
    protected function loadHtml()
    {
        $this
                ->addColumn((new Column('value'))->setSearchable(true, Column::TYPE_INT)->setOrderable(DataProvider::SORT_ASC))
                ->addColumn((new Column('unit'))->setOrderable()->setSearchable(true))
                ->addColumn((new Column('email_template'))->setOrderable()->setSearchable(true))
                ->addColumn((new Column('ticket_template'))->setOrderable()->setSearchable(true))
                ->addColumn((new Column('ticket_status'))->setOrderable()->setSearchable(true))
                ->addColumn((new Column('action'))->setOrderable()->setSearchable(true));
    }
}
