‪TYPO3CMS  10.4
RecordBrowser.php
Go to the documentation of this file.
1 <?php
2 
3 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 
19 
28 {
32  protected ‪$urlParameters = [];
33 
37  protected function ‪initialize()
38  {
39  $this->‪determineScriptUrl();
40  $this->‪initVariables();
41  }
42 
46  protected function ‪initVariables()
47  {
48  }
49 
57  public function ‪displayRecordsForPage(int $selectedPage, string $tables, array ‪$urlParameters): string
58  {
59  $this->urlParameters = ‪$urlParameters;
60  $this->urlParameters['mode'] = 'db';
61  $this->expandPage = $selectedPage;
62 
63  return $this->‪renderTableRecords($tables);
64  }
65 
70  public function ‪getUrlParameters(array $values): array
71  {
72  return array_merge($this->urlParameters, $values);
73  }
74 }
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser\displayRecordsForPage
‪string displayRecordsForPage(int $selectedPage, string $tables, array $urlParameters)
Definition: RecordBrowser.php:56
‪TYPO3\CMS\Recordlist\Browser\DatabaseBrowser\renderTableRecords
‪string renderTableRecords($tables)
Definition: DatabaseBrowser.php:158
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser\getUrlParameters
‪string[] getUrlParameters(array $values)
Definition: RecordBrowser.php:69
‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser\determineScriptUrl
‪determineScriptUrl()
Definition: AbstractElementBrowser.php:97
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser
Definition: RecordBrowser.php:28
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser\initialize
‪initialize()
Definition: RecordBrowser.php:36
‪TYPO3\CMS\Recordlist\Browser\DatabaseBrowser
Definition: DatabaseBrowser.php:32
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser\$urlParameters
‪array $urlParameters
Definition: RecordBrowser.php:31
‪TYPO3\CMS\Recordlist\Browser
Definition: AbstractElementBrowser.php:16
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser\initVariables
‪initVariables()
Definition: RecordBrowser.php:45