Add FilterChain::setFilters()

This commit is contained in:
Eric Lippmann 2019-07-11 14:39:58 +02:00 committed by Johannes Meyer
parent a33fda9dd7
commit b8fb193bdd
1 changed files with 16 additions and 0 deletions

View File

@ -21,6 +21,22 @@ abstract class FilterChain extends Filter
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)
{
foreach ($this->filters() as $filter) {