/** @param array of PntSqlFilter to be used in the entire application where applicable
* Default implementation is to store these filters in te session.
* SearchPages will try to use the global filters, propertypages and parts will not,
* they may have to be overridden or the domain model has to be made global filter sensitive.
* Make sure to include eventual additional filter classes before calling this method
*/
function (&$filters) {
$this->filters = $filters;
$filterArrays = array();
reset($filters);
foreach ($filters as $key => $filter) {
$filterArrays[$key] = $filter->();
}
$_SESSION[$this->()]['pntGlobalFilters'] = $filterArrays;
}
|