mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
parent
dbc2f98053
commit
9a0e47a3e1
@ -422,6 +422,16 @@ class SimpleQuery implements QueryInterface, Queryable, Iterator
|
|||||||
return $this->hasMore;
|
return $this->hasMore;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return whether this query will or has yielded any result
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function hasResult()
|
||||||
|
{
|
||||||
|
return $this->iteratorPosition !== null || $this->fetchRow() !== false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a limit count and offset to the query
|
* Set a limit count and offset to the query
|
||||||
*
|
*
|
||||||
|
@ -367,6 +367,16 @@ class RepositoryQuery implements QueryInterface, SortRules, Iterator
|
|||||||
return $this->query->hasMore();
|
return $this->query->hasMore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return whether this query will or has yielded any result
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function hasResult()
|
||||||
|
{
|
||||||
|
return $this->query->hasResult();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Limit this query's results
|
* Limit this query's results
|
||||||
*
|
*
|
||||||
|
@ -433,6 +433,16 @@ abstract class DataView implements QueryInterface, SortRules, IteratorAggregate
|
|||||||
return $this->query->hasMore();
|
return $this->query->hasMore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return whether this query will or has yielded any result
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function hasResult()
|
||||||
|
{
|
||||||
|
return $this->query->hasResult();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a limit count and offset
|
* Set a limit count and offset
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user