2015-04-24 14:27:22 +02:00
|
|
|
<?php
|
|
|
|
|
2015-06-30 11:27:32 +02:00
|
|
|
use Icinga\Module\Director\Web\Controller\ActionController;
|
2015-04-24 14:27:22 +02:00
|
|
|
|
|
|
|
class Director_ListController extends ActionController
|
|
|
|
{
|
2015-06-01 12:18:13 +02:00
|
|
|
public function activitylogAction()
|
|
|
|
{
|
2015-06-29 10:13:39 +02:00
|
|
|
$this->setConfigTabs()->activate('activitylog');
|
2015-06-01 12:18:13 +02:00
|
|
|
$this->view->title = $this->translate('Activity Log');
|
|
|
|
$this->view->table = $this->loadTable('activityLog')->setConnection($this->db());
|
|
|
|
$this->render('table');
|
|
|
|
}
|
2015-06-18 10:54:44 +02:00
|
|
|
|
2015-07-02 14:13:42 +02:00
|
|
|
public function datalistAction()
|
|
|
|
{
|
|
|
|
$this->setConfigTabs()->activate('datalist');
|
|
|
|
$this->view->title = $this->translate('Data lists');
|
|
|
|
$this->view->table = $this->loadTable('datalist')->setConnection($this->db());
|
|
|
|
$this->render('table');
|
|
|
|
}
|
|
|
|
|
2015-07-03 10:49:47 +02:00
|
|
|
public function datafieldAction()
|
|
|
|
{
|
2015-07-03 10:53:39 +02:00
|
|
|
$this->view->addLink = $this->view->qlink(
|
2015-07-03 11:20:58 +02:00
|
|
|
$this->translate('Add field'),
|
2015-07-03 13:17:05 +02:00
|
|
|
'director/datafield'
|
2015-07-03 10:53:39 +02:00
|
|
|
);
|
|
|
|
|
2015-07-03 10:49:47 +02:00
|
|
|
$this->setConfigTabs()->activate('datafield');
|
|
|
|
$this->view->title = $this->translate('Data fields');
|
|
|
|
$this->view->table = $this->loadTable('datafield')->setConnection($this->db());
|
|
|
|
$this->render('table');
|
|
|
|
}
|
|
|
|
|
2015-06-18 10:54:44 +02:00
|
|
|
public function generatedconfigAction()
|
|
|
|
{
|
2015-06-29 10:13:39 +02:00
|
|
|
$this->view->addLink = $this->view->qlink(
|
|
|
|
$this->translate('Generate'),
|
|
|
|
'director/config/store'
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->setConfigTabs()->activate('generatedconfig');
|
2015-06-18 10:54:44 +02:00
|
|
|
$this->view->title = $this->translate('Generated Configs');
|
|
|
|
$this->view->table = $this->loadTable('generatedConfig')->setConnection($this->db());
|
|
|
|
$this->render('table');
|
|
|
|
}
|
2015-04-24 14:27:22 +02:00
|
|
|
}
|