2015-04-24 14:27:22 +02:00
|
|
|
<?php
|
|
|
|
|
2015-10-20 22:34:04 +02:00
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
|
2015-06-30 11:27:32 +02:00
|
|
|
use Icinga\Module\Director\Web\Controller\ActionController;
|
2015-09-29 20:35:05 +02:00
|
|
|
use Exception;
|
2015-04-24 14:27:22 +02:00
|
|
|
|
2015-10-20 22:34:04 +02:00
|
|
|
class ListController extends ActionController
|
2015-04-24 14:27:22 +02:00
|
|
|
{
|
2015-07-21 15:16:18 +02:00
|
|
|
public function importsourceAction()
|
|
|
|
{
|
2016-06-26 16:30:58 +02:00
|
|
|
$this->setAutoRefreshInterval(10);
|
|
|
|
|
2016-02-29 12:20:57 +01:00
|
|
|
$this->view->addLink = $this->view->qlink(
|
|
|
|
$this->translate('Add import source'),
|
|
|
|
'director/importsource/add',
|
|
|
|
null,
|
|
|
|
array('class' => 'icon-plus')
|
|
|
|
);
|
2015-07-21 15:16:18 +02:00
|
|
|
|
2015-07-22 10:12:50 +02:00
|
|
|
$this->setImportTabs()->activate('importsource');
|
2015-07-21 15:16:18 +02:00
|
|
|
$this->view->title = $this->translate('Import source');
|
2015-08-28 23:40:40 +02:00
|
|
|
$this->prepareAndRenderTable('importsource');
|
2015-07-21 15:16:18 +02:00
|
|
|
}
|
|
|
|
|
2015-07-23 16:36:58 +02:00
|
|
|
public function syncruleAction()
|
|
|
|
{
|
2016-06-26 16:30:58 +02:00
|
|
|
$this->setAutoRefreshInterval(10);
|
|
|
|
|
2016-02-29 12:20:57 +01:00
|
|
|
$this->view->addLink = $this->view->qlink(
|
|
|
|
$this->translate('Add sync rule'),
|
|
|
|
'director/syncrule/add',
|
|
|
|
null,
|
|
|
|
array('class' => 'icon-plus')
|
|
|
|
);
|
2015-07-23 16:36:58 +02:00
|
|
|
|
|
|
|
$this->setImportTabs()->activate('syncrule');
|
|
|
|
$this->view->title = $this->translate('Sync rule');
|
|
|
|
$this->view->table = $this->loadTable('syncrule')->setConnection($this->db());
|
|
|
|
$this->render('table');
|
|
|
|
}
|
2015-04-24 14:27:22 +02:00
|
|
|
}
|