‪TYPO3CMS  9.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 ()
 

Protected Member Functions

 initialize ()
 
 determineScriptUrl ()
 
 initVariables ()
 
 initDocumentTemplate ()
 
string[] getBodyTagAttributes ()
 
string[] getBParamDataAttributes ()
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

DocumentTemplate $doc
 
PageRenderer $pageRenderer
 
string $thisScript = ''
 
IconFactory $iconFactory
 
string $bparams
 

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 31 of file AbstractElementBrowser.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::__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 98 of file AbstractElementBrowser.php.

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

◆ getBackendUser()

◆ getBodyTagAttributes()

string [] TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::getBodyTagAttributes ( )
abstractprotected

◆ getBParamDataAttributes()

string [] TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::getBParamDataAttributes ( )
protected

Splits parts of $this->bparams and returns needed data attributes for the Javascript

Returns
‪string[] Data attributes for Javascript

Definition at line 145 of file AbstractElementBrowser.php.

Referenced by TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser\initDocumentTemplate().

◆ getLanguageService()

◆ initDocumentTemplate()

◆ initialize()

◆ initVariables()

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>") 5: IRRE uniqueness: name of function in opener window that checks if element is already used, eg. "inline.checkUniqueElement" 6: IRRE uniqueness: name of function in opener window that performs some additional(!) action, eg. "inline.setUniqueElement" 7: IRRE uniqueness: name of function in opener window that performs action instead of using addElement/insertElement, eg. "inline.importElement"

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

Definition at line 71 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().

◆ $doc

DocumentTemplate TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser::$doc
protected

Definition at line 35 of file AbstractElementBrowser.php.

◆ $iconFactory

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

Definition at line 49 of file AbstractElementBrowser.php.

◆ $pageRenderer

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

Definition at line 39 of file AbstractElementBrowser.php.

◆ $thisScript