1 | <?php |
||
24 | class PaginateViewHelper extends \TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper { |
||
25 | |||
26 | /** |
||
27 | * The pagination Controller |
||
28 | * |
||
29 | * @var \SKYFILLERS\SfFilecollectionGallery\Controller\PaginateController |
||
30 | */ |
||
31 | protected $controller; |
||
32 | |||
33 | /** |
||
34 | * Injection of widget controller |
||
35 | * |
||
36 | * @param \SKYFILLERS\SfFilecollectionGallery\Controller\PaginateController $controller |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function injectController(\SKYFILLERS\SfFilecollectionGallery\Controller\PaginateController $controller) { |
||
43 | |||
44 | /** |
||
45 | * The render method of widget |
||
46 | * |
||
47 | * @param mixed $objects \TYPO3\CMS\ExtBase\Persistence\QueryResultInterface, |
||
48 | * \TYPO3\CMS\ExtBase\Persistence\ObjectStorage Object or array |
||
49 | * @param string $as Render object as |
||
50 | * @param array $configuration The configuration |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | public function render($objects, $as, array $configuration = array('itemsPerPage' => 10, |
||
58 | } |