Doctrine\ORM\Tools\Pagination\Paginator
Paginator
The paginator can handle various complex scenarios with DQL.
- Author: Pablo Díez <pablodip@gmail.com>
- License: New BSD
Synopsis
class Paginator
implements
Countable,IteratorAggregate
{
- // members
- private Query $query;
- private bool $fetchJoinCollection;
- private bool|null $useOutputWalkers;
- private int $count;
- // methods
- public void __construct()
- public Query getQuery()
- public Boolean getFetchJoinCollection()
- public bool|null getUseOutputWalkers()
- public $this setUseOutputWalkers()
- public void count()
- public void getIterator()
- private Query cloneQuery()
- private bool useOutputWalker()
Hierarchy
Implements
Members
private
- $count — int
- $fetchJoinCollection — Doctrine\ORM\Tools\Pagination\bool
- $query — Doctrine\ORM\Query
- $useOutputWalkers — Doctrine\ORM\Tools\Pagination\bool|null
Methods
private
- cloneQuery() — Clones a query.
- useOutputWalker() — Determine whether to use an output walker for the query
public
- __construct() — Constructor.
- count() — {@inheritdoc}
- getFetchJoinCollection() — Returns whether the query joins a collection.
- getIterator() — {@inheritdoc}
- getQuery() — Returns the query
- getUseOutputWalkers() — Returns whether the paginator will use an output walker
- setUseOutputWalkers() — Set whether the paginator will use an output walker