1<?php
2
3namespace Icinga\Module\Director\Dashboard;
4
5use Icinga\Module\Director\Web\Tabs\InfraTabs;
6
7class InfrastructureDashboard extends Dashboard
8{
9    protected $dashletNames = array(
10        'Kickstart',
11        'ApiUserObject',
12        'EndpointObject',
13        'ZoneObject',
14    );
15
16    public function getTitle()
17    {
18        return $this->translate('Manage your Icinga Infrastructure');
19    }
20
21    public function getDescription()
22    {
23        return $this->translate(
24            'This is where you manage your Icinga 2 infrastructure. When adding'
25            . ' a new Icinga Master or Satellite please re-run the Kickstart'
26            . ' Helper once.'
27            . "\n\n"
28            . 'When you feel the desire to manually create Zone or Endpoint'
29            . ' objects please rethink this twice. Doing so is mostly the wrong'
30            . ' way, might lead to a dead end, requiring quite some effort to'
31            . ' clean up the whole mess afterwards.'
32        );
33    }
34
35    public function getTabs()
36    {
37        return new InfraTabs($this->getAuth());
38    }
39}
40