‪TYPO3CMS  9.5
PaginateViewHelper.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
17 
51 {
55  protected ‪$controller;
56 
60  public function ‪injectPaginateController(\‪TYPO3\CMS\Fluid\ViewHelpers\Be\Widget\Controller\PaginateController ‪$controller)
61  {
62  $this->controller = ‪$controller;
63  }
64 
68  public function ‪initializeArguments()
69  {
70  parent::initializeArguments();
71  $this->registerArgument('objects', QueryResultInterface::class, 'The QueryResult containing all objects.', true);
72  $this->registerArgument('as', 'string', 'as', true);
73  $this->registerArgument('configuration', 'array', 'configuration', false, ['itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, 'maximumNumberOfLinks' => 99]);
74  }
75 
79  public function ‪render()
80  {
81  return $this->‪initiateSubRequest();
82  }
83 }
‪TYPO3\CMS\Fluid\ViewHelpers\Be\Widget\PaginateViewHelper
Definition: PaginateViewHelper.php:51
‪TYPO3
‪TYPO3\CMS\Fluid\ViewHelpers\Be\Widget\PaginateViewHelper\$controller
‪TYPO3 CMS Fluid ViewHelpers Be Widget Controller PaginateController $controller
Definition: PaginateViewHelper.php:54
‪TYPO3\CMS\Fluid\ViewHelpers\Be\Widget\PaginateViewHelper\render
‪string render()
Definition: PaginateViewHelper.php:78
‪TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper
Definition: AbstractWidgetViewHelper.php:26
‪TYPO3\CMS\Extbase\Persistence\QueryResultInterface
Definition: QueryResultInterface.php:21
‪TYPO3\CMS\Fluid\ViewHelpers\Be\Widget
‪TYPO3\CMS\Fluid\ViewHelpers\Be\Widget\PaginateViewHelper\injectPaginateController
‪injectPaginateController(\TYPO3\CMS\Fluid\ViewHelpers\Be\Widget\Controller\PaginateController $controller)
Definition: PaginateViewHelper.php:59
‪TYPO3\CMS\Fluid\ViewHelpers\Be\Widget\PaginateViewHelper\initializeArguments
‪initializeArguments()
Definition: PaginateViewHelper.php:67
‪TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper\initiateSubRequest
‪TYPO3 CMS Extbase Mvc ResponseInterface initiateSubRequest()
Definition: AbstractWidgetViewHelper.php:204