mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
Merge pull request #3112 from Icinga/fix/filter-hints-for-ide-3111
Filter: new abstract methode and better IDE hints
This commit is contained in:
commit
a840a6d1f1
@ -33,6 +33,14 @@ abstract class Filter
|
|||||||
|
|
||||||
abstract public function orFilter(Filter $filter);
|
abstract public function orFilter(Filter $filter);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the give row matches this Filter
|
||||||
|
*
|
||||||
|
* @param mixed $row Preferrably an stdClass instance
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
abstract public function matches($row);
|
||||||
|
|
||||||
public function getUrlParams()
|
public function getUrlParams()
|
||||||
{
|
{
|
||||||
return UrlParams::fromQueryString($this->toQueryString());
|
return UrlParams::fromQueryString($this->toQueryString());
|
||||||
@ -133,7 +141,7 @@ abstract class Filter
|
|||||||
* @param string $filter Filter expression
|
* @param string $filter Filter expression
|
||||||
*
|
*
|
||||||
* @throws FilterException
|
* @throws FilterException
|
||||||
* @return FilterWhere
|
* @return FilterExpression
|
||||||
*/
|
*/
|
||||||
public static function where($col, $filter)
|
public static function where($col, $filter)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user