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