<?php

namespace ModulesGarden\HostingQuotaNotifications\App\UI\Home\Pages;

use ModulesGarden\HostingQuotaNotifications\App\Helper\Home\Data;
use ModulesGarden\HostingQuotaNotifications\Core\ModuleConstants;
use \ModulesGarden\HostingQuotaNotifications\Core\UI\Interfaces\AdminArea;
use ModulesGarden\HostingQuotaNotifications\App\Helper\Home\Sort;
use ModulesGarden\HostingQuotaNotifications\Core\UI\Widget\Forms\Sections\BaseSection;

/**
 * Description of HomePage
 *
 * @author Artur Pilch <artur.pi@modulesgarden.com>
 */
class HomePage extends BaseSection implements AdminArea
{
    protected $id   = 'groups_id';
    protected $name = 'groups_name';

    public function initContent()
    {
        $this->customTplVars = [
            'statistics' => Sort::getData(),
            'data'       => Data::getLangsAndIcons(),
            'cronPath'   => ModuleConstants::getModuleRootDir().'/cron/cron.php'
        ];
    }
}