AbstractElementBrowser
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.
Table of Contents
Properties
- $bparams : string
- 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.
- $iconFactory : IconFactory
- $moduleTemplate : ModuleTemplate
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageRenderer : PageRenderer
- $request : ServerRequestInterface|null
- $thisScript : string
- URL of current request
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- setRequest() : void
- determineScriptUrl() : mixed
- Sets the script url depending on being a module or script request
- getBackendUser() : BackendUserAuthentication
- getBodyTagAttributes() : array<string, string>
- getBParamDataAttributes() : array<string, string>
- Splits parts of $this->bparams and returns needed data attributes for the Javascript
- getLanguageService() : LanguageService
- getRequest() : ServerRequestInterface
- initialize() : mixed
- Main initialization
- initVariables() : mixed
- setBodyTagParameters() : mixed
- Initialize the body tag for the module
Properties
$bparams
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.
protected
string
$bparams
= ''
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- $pArr = explode('|', $this->bparams);
$formFieldName = $pArr[0];
$allowedTablesOrFileTypes = $pArr[3]; URL of current request Sets the script url depending on being a module or script request Array of body-tag attributes Splits parts of $this->bparams and returns needed data attributes for the Javascript Data attributes for Javascript Main initialization Initialize the body tag for the module-
$iconFactory
protected
IconFactory
$iconFactory
$moduleTemplate
protected
ModuleTemplate
$moduleTemplate
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageRenderer
protected
PageRenderer
$pageRenderer
$request
protected
ServerRequestInterface|null
$request
= null
$thisScript
protected
string
$thisScript
= ''
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(IconFactory $iconFactory, PageRenderer $pageRenderer, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory) : mixed
Parameters
setRequest()
public
setRequest(ServerRequestInterface $request) : void
Parameters
determineScriptUrl()
protected
determineScriptUrl() : mixed
getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthentication
getBodyTagAttributes()
protected
getBodyTagAttributes() : array<string, string>
Return values
array<string, string>
—
getBParamDataAttributes()
protected
getBParamDataAttributes() : array<string, string>
Return values
array<string, string>
—
getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageService
getRequest()
protected
getRequest() : ServerRequestInterface
Return values
ServerRequestInterface
initialize()
protected
initialize() : mixed
initVariables()
protected
initVariables() : mixed
setBodyTagParameters()
protected
setBodyTagParameters() : mixed
Search results