2016-10-27 19:58:31 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Dashboard\Dashlet;
|
|
|
|
|
2023-02-22 11:46:24 +01:00
|
|
|
use Icinga\Module\Director\Auth\Permission;
|
|
|
|
|
2016-10-27 19:58:31 +02:00
|
|
|
class DatafieldDashlet extends Dashlet
|
|
|
|
{
|
|
|
|
protected $icon = 'edit';
|
|
|
|
|
|
|
|
public function getTitle()
|
|
|
|
{
|
2017-07-20 15:10:12 +02:00
|
|
|
return $this->translate('Define Data Fields');
|
2016-10-27 19:58:31 +02:00
|
|
|
}
|
|
|
|
|
2017-06-14 15:56:53 +02:00
|
|
|
public function getSummary()
|
2016-10-27 19:58:31 +02:00
|
|
|
{
|
|
|
|
return $this->translate(
|
|
|
|
'Data fields make sure that configuration fits your rules'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getUrl()
|
|
|
|
{
|
|
|
|
return 'director/data/fields';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function listRequiredPermissions()
|
|
|
|
{
|
2023-02-22 11:46:24 +01:00
|
|
|
return [Permission::ADMIN];
|
2016-10-27 19:58:31 +02:00
|
|
|
}
|
|
|
|
}
|