‪TYPO3CMS  11.5
TYPO3\CMS\Recordlist\Browser\DatabaseBrowser Class Reference
Inheritance diagram for TYPO3\CMS\Recordlist\Browser\DatabaseBrowser:
TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser TYPO3\CMS\Recordlist\Browser\ElementBrowserInterface TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface TYPO3\CMS\Recordlist\Browser\RecordBrowser

Public Member Functions

string render ()
 
string[] getUrlParameters (array $values)
 
bool isCurrentlySelectedItem (array $values)
 
string getScriptUrl ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser
 __construct (IconFactory $iconFactory, PageRenderer $pageRenderer, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory)
 
array< string, getBodyTagAttributes() { return[];} protected array< string, function getBParamDataAttributes() { $params=explode('|', $this->bparams);$fieldRef=$params[0];$rteParams=$params[1];$rteConfig=$params[2];$irreObjectId=$params[4] ?? null;return['data-form-field-name'=> 'data[' . $fieldRef . '][' . $rteParams . '][' . $rteConfig . ']', 'data-field-reference'=> function setRequest (ServerRequestInterface $request)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Recordlist\Browser\ElementBrowserInterface
array[] processSessionData ($data)
 

Public Attributes

array< int, function processSessionData( $data) { if( $this->expandPage !==null) { $data[ 'expandPage']=$this-> expandPage
 
 $store = true
 
 else
 
 return [$data, $store]
 

Protected Member Functions

 initialize ()
 
 initVariables ()
 
string renderTableRecords ($tables)
 
 renderSearchBox (ElementBrowserRecordList $dblist, string $searchWord, int $searchLevels)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser
 determineScriptUrl ()
 
 setBodyTagParameters ()
 
 getRequest ()
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

int null $expandPage
 
array $modTSconfig = []
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser
ModuleTemplate $moduleTemplate
 
string $thisScript = ''
 
string $bparams = ''
 
ServerRequestInterface $request = null
 
IconFactory $iconFactory
 
PageRenderer $pageRenderer
 
UriBuilder $uriBuilder
 
ModuleTemplateFactory $moduleTemplateFactory
 
array< string, function getBodyTagAttributes() { return[];} protected array< string, function getBParamDataAttributes() { $params=explode('|', $this->bparams);$fieldRef=$params[0];$rteParams=$params[1];$rteConfig=$params[2];$irreObjectId=$params[4] ?? null;return['data-form-field-name'=> 'data[' . $fieldRef . '][' . $rteParams . '][' . $rteConfig . ']', 'data-field-reference'=> $fieldRef
 

Detailed Description

Showing a page tree and allows you to browse for records

This class is a specific LinkBrowser implementation and is not part of the TYPO3's Core API.

Definition at line 31 of file DatabaseBrowser.php.

Member Function Documentation

◆ getScriptUrl()

string TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::getScriptUrl ( )

Returns the URL of the current script

Returns
‪string

Implements TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface.

Definition at line 249 of file DatabaseBrowser.php.

References TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser\$thisScript.

◆ getUrlParameters()

string [] TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::getUrlParameters ( array  $values)
Parameters
array$values‪Array of values to include into the parameters
Returns
‪string[] Array of parameters which have to be added to URLs

Implements TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface.

Reimplemented in TYPO3\CMS\Recordlist\Browser\RecordBrowser.

Definition at line 225 of file DatabaseBrowser.php.

References TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser\$bparams, and TYPO3\CMS\Recordlist\Browser\DatabaseBrowser\$expandPage.

Referenced by TYPO3\CMS\Recordlist\Browser\DatabaseBrowser\renderTableRecords().

◆ initialize()

TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::initialize ( )
protected

Main initialization

Reimplemented from TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser.

Reimplemented in TYPO3\CMS\Recordlist\Browser\RecordBrowser.

Definition at line 42 of file DatabaseBrowser.php.

◆ initVariables()

TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::initVariables ( )
protected

◆ isCurrentlySelectedItem()

bool TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::isCurrentlySelectedItem ( array  $values)
Parameters
array$values‪Values to be checked
Returns
‪bool Returns TRUE if the given values match the currently selected item

Implements TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface.

Definition at line 239 of file DatabaseBrowser.php.

◆ render()

◆ renderSearchBox()

TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::renderSearchBox ( ElementBrowserRecordList  $dblist,
string  $searchWord,
int  $searchLevels 
)
protected

◆ renderTableRecords()

Member Data Documentation

◆ $expandPage

int null TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::$expandPage
protected

When you click a page title/expand icon to see the content of a certain page, this value will contain the ID of the expanded page. If the value is NOT set by GET parameter, then it will be restored from the module session data.

Definition at line 39 of file DatabaseBrowser.php.

Referenced by TYPO3\CMS\Recordlist\Browser\DatabaseBrowser\getUrlParameters().

◆ $modTSconfig

array TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::$modTSconfig = []
protected

Definition at line 40 of file DatabaseBrowser.php.

◆ $store

TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::$store = true

Definition at line 67 of file DatabaseBrowser.php.

◆ else

TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::else
Initial value:
{
$this->‪expandPage = (int)($data['expandPage'] ?? 0)

Definition at line 68 of file DatabaseBrowser.php.

◆ expandPage

array<int, function processSessionData($data) { if ($this->expandPage !== null) { $data['expandPage'] = $this-> TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::expandPage

Session data for this class can be set from outside with this method.

Parameters
mixed[]$data‪Session data array
Returns
‪array<int, array|bool> Session data and boolean which indicates that data needs to be stored in session because it's changed

Definition at line 66 of file DatabaseBrowser.php.

Referenced by TYPO3\CMS\Recordlist\Browser\RecordBrowser\displayRecordsForPage(), TYPO3\CMS\Recordlist\Browser\DatabaseBrowser\initVariables(), TYPO3\CMS\Recordlist\Browser\DatabaseBrowser\render(), and TYPO3\CMS\Recordlist\Browser\DatabaseBrowser\renderTableRecords().

◆ return

TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::return[ $data, $store]

Definition at line 72 of file DatabaseBrowser.php.

‪TYPO3\CMS\Recordlist\Browser\DatabaseBrowser\expandPage
‪array< int, function processSessionData( $data) { if( $this->expandPage !==null) { $data[ 'expandPage']=$this-> expandPage
Definition: DatabaseBrowser.php:66