mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Add FilterChain::setFilters()
This commit is contained in:
parent
a33fda9dd7
commit
b8fb193bdd
@ -21,6 +21,22 @@ abstract class FilterChain extends Filter
|
|||||||
|
|
||||||
protected $allowedColumns;
|
protected $allowedColumns;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the filters
|
||||||
|
*
|
||||||
|
* @param array $filters
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setFilters(array $filters)
|
||||||
|
{
|
||||||
|
$this->filters = $filters;
|
||||||
|
|
||||||
|
$this->refreshChildIds();
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function hasId($id)
|
public function hasId($id)
|
||||||
{
|
{
|
||||||
foreach ($this->filters() as $filter) {
|
foreach ($this->filters() as $filter) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user