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:
parent
23f0686936
commit
4c1375834c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue