monitoring: Add DataView::handleRequest() (WIP)

This method is work in progress as it's missing pagination, sorting and output format handling.

refs #9967
This commit is contained in:
Eric Lippmann 2015-08-20 12:37:37 +02:00
parent 23f0686936
commit 4c1375834c
1 changed files with 16 additions and 0 deletions

View File

@ -625,4 +625,20 @@ abstract class DataView implements QueryInterface, SortRules, FilterColumns, Ite
{
return $this->getQuery()->fetchPairs();
}
/**
* Handle the given request
*
* This method is work in progress as it's missing pagination, sorting and output format handling.
*
* @param Request $request
*
* @return $this
*/
public function handleRequest(Request $request)
{
$params = $request->getUrlParams();
$this->applyFilter(Filter::fromQuerystring((string) $params));
return $this;
}
}