‪TYPO3CMS  11.5
TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser Class Reference
Inheritance diagram for TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser:
TYPO3\CMS\Recordlist\Browser\DatabaseBrowser TYPO3\CMS\Recordlist\Browser\FileBrowser TYPO3\CMS\Recordlist\Browser\FolderBrowser TYPO3\CMS\Recordlist\Browser\RecordBrowser

Public Member Functions

 __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)
 

Protected Member Functions

 initialize ()
 
 determineScriptUrl ()
 
 initVariables ()
 
 setBodyTagParameters ()
 
 getRequest ()
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

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

Base class for element browsers

NOTE: This class should only be used internally. Extensions must implement the ElementBrowserInterface.

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

Definition at line 34 of file AbstractElementBrowser.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ determineScriptUrl()

TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::determineScriptUrl ( )
protected

Sets the script url depending on being a module or script request

Definition at line 103 of file AbstractElementBrowser.php.

Referenced by TYPO3\CMS\Recordlist\Browser\RecordBrowser\initialize(), and TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser\initialize().

◆ getBackendUser()

◆ getLanguageService()

◆ getRequest()

◆ initialize()

◆ initVariables()

◆ setBodyTagParameters()

TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::setBodyTagParameters ( )
protected

◆ setRequest()

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 TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::setRequest ( ServerRequestInterface  $request)

Member Data Documentation

◆ $bparams

string TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::$bparams = ''
protected

Active with TYPO3 Element Browser: Contains the name of the form field for which this window opens - thus allows us to make references back to the main window in which the form is. Example value: "data[pages][39][bodytext]|||tt_content|" or "data[tt_content][NEW3fba56fde763d][image]|||gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai|" Values: 0: form field name reference, eg. "data[tt_content][123][image]" 1: htmlArea RTE parameters: editorNo:contentTypo3Language 2: RTE config parameters: RTEtsConfigParams 3: allowed types. Eg. "tt_content" or "gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai" 4: IRRE uniqueness: target level object-id to perform actions/checks on, eg. "data-4-pages-4-nav_icon-sys_file_reference" ("data-<uid>-<table>-<pid>-<field>-<foreign_table>")

$pArr = explode('|', $this->bparams); $formFieldName = $pArr[0]; $allowedTablesOrFileTypes = $pArr[3];

Definition at line 63 of file AbstractElementBrowser.php.

Referenced by TYPO3\CMS\Recordlist\Browser\FolderBrowser\getUrlParameters(), TYPO3\CMS\Recordlist\Browser\DatabaseBrowser\getUrlParameters(), and TYPO3\CMS\Recordlist\Browser\FileBrowser\getUrlParameters().

◆ $fieldRef

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' => TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::$fieldRef
protected
Returns
‪array<string, string> Array of body-tag attributes

Definition at line 152 of file AbstractElementBrowser.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::$iconFactory
protected

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::$moduleTemplate
protected

Definition at line 38 of file AbstractElementBrowser.php.

◆ $moduleTemplateFactory

ModuleTemplateFactory TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::$moduleTemplateFactory
protected

◆ $pageRenderer

PageRenderer TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::$pageRenderer
protected

◆ $request

ServerRequestInterface TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::$request = null
protected

◆ $thisScript

string TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::$thisScript = ''
protected

◆ $uriBuilder

UriBuilder TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::$uriBuilder
protected