‪TYPO3CMS  9.5
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 
26 {
30  protected ‪$urlParameters = [];
31 
35  protected function ‪initialize()
36  {
37  $this->‪determineScriptUrl();
38  $this->‪initVariables();
39  }
40 
44  protected function ‪initVariables()
45  {
46  }
47 
55  public function ‪displayRecordsForPage(int $selectedPage, string $tables, array ‪$urlParameters): string
56  {
57  $this->urlParameters = ‪$urlParameters;
58  $this->urlParameters['mode'] = 'db';
59  $this->expandPage = $selectedPage;
60 
61  return $this->‪renderTableRecords($tables);
62  }
63 
68  public function ‪getUrlParameters(array $values): array
69  {
70  return array_merge($this->urlParameters, $values);
71  }
72 }
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser\displayRecordsForPage
‪string displayRecordsForPage(int $selectedPage, string $tables, array $urlParameters)
Definition: RecordBrowser.php:54
‪TYPO3\CMS\Recordlist\Browser\DatabaseBrowser\renderTableRecords
‪string renderTableRecords($tables)
Definition: DatabaseBrowser.php:183
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser\getUrlParameters
‪string[] getUrlParameters(array $values)
Definition: RecordBrowser.php:67
‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser\determineScriptUrl
‪determineScriptUrl()
Definition: AbstractElementBrowser.php:98
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser
Definition: RecordBrowser.php:26
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser\initialize
‪initialize()
Definition: RecordBrowser.php:34
‪TYPO3\CMS\Recordlist\Browser\DatabaseBrowser
Definition: DatabaseBrowser.php:31
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser\$urlParameters
‪array $urlParameters
Definition: RecordBrowser.php:29
‪TYPO3\CMS\Recordlist\Browser
Definition: AbstractElementBrowser.php:2
‪TYPO3\CMS\Recordlist\Browser\RecordBrowser\initVariables
‪initVariables()
Definition: RecordBrowser.php:43