1 | <?php |
||
21 | class DoctrineORMAdapter implements AdapterInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var \Doctrine\ORM\Tools\Pagination\Paginator |
||
25 | */ |
||
26 | private $paginator; |
||
27 | |||
28 | /** |
||
29 | * Constructor. |
||
30 | * |
||
31 | * @param \Doctrine\ORM\Query|\Doctrine\ORM\QueryBuilder $query A Doctrine ORM query or query builder. |
||
32 | * @param boolean $fetchJoinCollection Whether the query joins a collection (true by default). |
||
33 | * @param boolean|null $useOutputWalkers Whether to use output walkers pagination mode |
||
34 | */ |
||
35 | 8 | public function __construct($query, $fetchJoinCollection = true, $useOutputWalkers = null) |
|
40 | |||
41 | /** |
||
42 | * Returns the query |
||
43 | * |
||
44 | * @return \Doctrine\ORM\Query |
||
45 | */ |
||
46 | public function getQuery() |
||
50 | |||
51 | /** |
||
52 | * Returns whether the query joins a collection. |
||
53 | * |
||
54 | * @return boolean Whether the query joins a collection. |
||
55 | */ |
||
56 | public function getFetchJoinCollection() |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 6 | public function getNbResults() |
|
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | 6 | public function getSlice($offset, $length) |
|
81 | } |
||
82 |