2017-07-31 10:01:58 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Dashboard\Dashlet;
|
|
|
|
|
2023-02-22 11:46:24 +01:00
|
|
|
use Icinga\Module\Director\Auth\Permission;
|
|
|
|
|
2017-07-31 10:01:58 +02:00
|
|
|
class TimeperiodTemplateDashlet extends Dashlet
|
|
|
|
{
|
|
|
|
protected $icon = 'cubes';
|
|
|
|
|
2023-02-22 11:46:24 +01:00
|
|
|
protected $requiredStats = ['timeperiod'];
|
2017-07-31 10:01:58 +02:00
|
|
|
|
|
|
|
public function getTitle()
|
|
|
|
{
|
|
|
|
return $this->translate('Timeperiod Templates');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSummary()
|
|
|
|
{
|
|
|
|
return $this->translate('Provide templates for your TimePeriod objects.')
|
|
|
|
. ' ' . $this->getTemplateSummaryText('timeperiod');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function listRequiredPermissions()
|
|
|
|
{
|
2023-02-22 11:46:24 +01:00
|
|
|
return [Permission::ADMIN];
|
2017-07-31 10:01:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getUrl()
|
|
|
|
{
|
|
|
|
return 'director/timeperiods/templates';
|
|
|
|
}
|
|
|
|
}
|