monitoring: Remove deprecated method ListController::applyRestriction()
This commit is contained in:
parent
44271471e3
commit
fc28088dc0
|
@ -24,24 +24,6 @@ class Monitoring_ListController extends Controller
|
||||||
$this->createTabs();
|
$this->createTabs();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated DO NOT USE. THIS IS A HACK. This is removed once we fix the eventhistory action w/ filters.
|
|
||||||
*/
|
|
||||||
protected function applyFilter($query)
|
|
||||||
{
|
|
||||||
$params = clone $this->params;
|
|
||||||
$params->shift('format');
|
|
||||||
$params->shift('limit');
|
|
||||||
$params->shift('page');
|
|
||||||
$params->shift('view');
|
|
||||||
if ($sort = $params->shift('sort')) {
|
|
||||||
$query->order($sort, $params->shift('dir'));
|
|
||||||
}
|
|
||||||
$query->applyFilter(Filter::fromQuerystring((string) $params));
|
|
||||||
$this->handleFormatRequest($query);
|
|
||||||
return $query;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overwrite the backend to use (used for testing)
|
* Overwrite the backend to use (used for testing)
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue