TYPO3 CMS  TYPO3_7-6
PaginateViewHelper.php
Go to the documentation of this file.
1 <?php
3 
4 /* *
5  * It is free software; you can redistribute it and/or modify it under *
6  * the terms of the GNU Lesser General Public License, either version 3 *
7  * of the License, or (at your option) any later version. *
8  * *
9  * *
10  * This script is distributed in the hope that it will be useful, but *
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
12  * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser *
13  * General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU Lesser General Public *
16  * License along with the script. *
17  * If not, see http://www.gnu.org/licenses/lgpl.html *
18  * *
19  * The TYPO3 project - inspiring people to share! *
20  * */
53 {
57  protected $controller;
58 
62  public function injectPaginateController(\TYPO3\CMS\Fluid\ViewHelpers\Be\Widget\Controller\PaginateController $controller)
63  {
64  $this->controller = $controller;
65  }
66 
73  public function render(\TYPO3\CMS\Extbase\Persistence\QueryResultInterface $objects, $as, array $configuration = ['itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, 'recordsLabel' => ''])
74  {
75  return $this->initiateSubRequest();
76  }
77 }
render(\TYPO3\CMS\Extbase\Persistence\QueryResultInterface $objects, $as, array $configuration=['itemsPerPage'=> 10, 'insertAbove'=> false, 'insertBelow'=> true, 'recordsLabel'=> ''])
injectPaginateController(\TYPO3\CMS\Fluid\ViewHelpers\Be\Widget\Controller\PaginateController $controller)