icingaweb2-module-director/library/Director/Dashboard/Dashlet/ChoicesDashlet.php

42 lines
857 B
PHP
Raw Normal View History

<?php
namespace Icinga\Module\Director\Dashboard\Dashlet;
abstract class ChoicesDashlet extends Dashlet
{
protected $icon = 'flapping';
public function getTitle()
{
return $this->translate('Choices');
}
public function getSummary()
{
return $this->translate(
2017-11-01 21:36:46 +01:00
'Combine multiple templates into meaningful Choices, making life'
. ' easier for your users'
);
}
protected function getType()
{
return strtolower(substr(
substr(get_called_class(), strlen(__NAMESPACE__) + 1),
0,
- strlen('ChoicesDashlet')
));
}
public function getUrl()
{
return 'director/templatechoices/' . $this->getType();
}
public function listRequiredPermissions()
{
return array('director/admin');
}
}