mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-19 00:38:27 +02:00
ObjectsController: allow to override ApplyRulesTbl
This commit is contained in:
parent
3ac99d6be3
commit
5a36735400
@ -133,6 +133,20 @@ abstract class ObjectsController extends ActionController
|
||||
->setBaseObjectUrl($this->getBaseObjectUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ApplyRulesTable
|
||||
* @throws NotFoundError
|
||||
*/
|
||||
protected function getApplyRulesTable()
|
||||
{
|
||||
$table = new ApplyRulesTable($this->db());
|
||||
$table->setType($this->getType())
|
||||
->setBaseObjectUrl($this->getBaseObjectUrl());
|
||||
$this->eventuallyFilterCommand($table);
|
||||
|
||||
return $table;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws NotFoundError
|
||||
*/
|
||||
@ -263,11 +277,7 @@ abstract class ObjectsController extends ActionController
|
||||
)
|
||||
);
|
||||
|
||||
$table = new ApplyRulesTable($this->db());
|
||||
$table->setType($this->getType())
|
||||
->setBaseObjectUrl($this->getBaseObjectUrl());
|
||||
$this->eventuallyFilterCommand($table);
|
||||
$table->renderTo($this);
|
||||
$this->getApplyRulesTable()->renderTo($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user