2015-07-26 15:39:37 +02:00
|
|
|
<?php
|
|
|
|
|
2015-10-20 22:34:04 +02:00
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
|
2015-07-26 15:39:37 +02:00
|
|
|
use Icinga\Module\Director\Web\Controller\ActionController;
|
|
|
|
|
2015-10-20 22:34:04 +02:00
|
|
|
class ImportrunController extends ActionController
|
2015-07-26 15:39:37 +02:00
|
|
|
{
|
|
|
|
public function indexAction()
|
|
|
|
{
|
2016-06-26 16:30:12 +02:00
|
|
|
$id = $this->getRequest()->getUrl()->getParams()->shift('id');
|
2015-07-26 15:39:37 +02:00
|
|
|
$this->view->title = $this->translate('Import run');
|
2016-06-26 16:30:12 +02:00
|
|
|
$table = $this
|
|
|
|
->loadTable('importedrows')
|
2015-08-28 23:56:25 +02:00
|
|
|
->setConnection($this->db())
|
|
|
|
->setChecksum(
|
2016-06-26 16:30:12 +02:00
|
|
|
$this->db()->getImportrunRowsetChecksum($id)
|
2015-08-28 23:56:25 +02:00
|
|
|
);
|
2016-06-26 16:30:12 +02:00
|
|
|
|
2015-08-28 23:56:25 +02:00
|
|
|
$this->view->table = $this->applyPaginationLimits($table);
|
2016-06-26 16:30:12 +02:00
|
|
|
$this->view->filterEditor = $table->getFilterEditor($this->getRequest());
|
|
|
|
$this->setViewScript('list/table');
|
2015-07-26 15:39:37 +02:00
|
|
|
}
|
|
|
|
}
|