mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
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();
|
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…
x
Reference in New Issue
Block a user