TYPO3 CMS  TYPO3_8-7
RecordBrowser.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
25 {
29  protected $urlParameters = [];
30 
34  protected function initialize()
35  {
36  $this->determineScriptUrl();
37  $this->initVariables();
38  }
39 
43  protected function initVariables()
44  {
45  }
46 
54  public function displayRecordsForPage(int $selectedPage, string $tables, array $urlParameters): string
55  {
56  $this->urlParameters = $urlParameters;
57  $this->urlParameters['mode'] = 'db';
58  $this->expandPage = $selectedPage;
59 
60  return $this->renderTableRecords($tables);
61  }
62 
67  public function getUrlParameters(array $values): array
68  {
69  return array_merge($this->urlParameters, $values);
70  }
71 }
displayRecordsForPage(int $selectedPage, string $tables, array $urlParameters)