NewContentElementController
Script Class for the New Content element wizard
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Properties
- $colPos : int|null
- If set, the content is destined for a specific column.
- $iconFactory : IconFactory
- $id : int
- Page id
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageInfo : array<string|int, mixed>
- $pageRenderer : PageRenderer
- $R_URI : string
- Return URL.
- $sys_language : int
- Sys language
- $uid_pid : int
- $uriBuilder : UriBuilder
- $view : StandaloneView
Methods
- __construct() : mixed
- getColPos() : int|null
- Provide information about the column position of the button that triggered the wizard
- getPageInfo() : array<string|int, mixed>
- Provide information about the current page making use of the wizard
- getSysLanguage() : int
- Provide information about the language used while triggering the wizard
- getUidPid() : int
- Provide information about the element to position the new element after (uid) or into (pid)
- handleRequest() : ResponseInterface
- Process incoming request and dispatch to the requested action
- positionMapAction() : ResponseInterface
- Renders the position map
- wizardAction() : ResponseInterface
- Renders the wizard
- getAppendWizards() : array<string|int, mixed>
- getBackendUser() : BackendUserAuthentication
- getFluidTemplateObject() : StandaloneView
- getLanguageService() : LanguageService
- getWizardGroupHeader() : array<string|int, mixed>
- getWizardItem() : array<string|int, mixed>
- getWizards() : array<string|int, mixed>
- Returns the array of elements in the wizard display.
- prepareDependencyOrdering() : mixed
- Prepare a wizard tab configuration for sorting.
- preparePositionMap() : void
- Creating the position map, necessary in case the position of the element has to be defined
- prepareWizardContent() : void
- Creating the module output.
- removeInvalidWizardItems() : void
- Checks the array for elements which might contain unallowed default values and will unset them! Looks for the "tt_content_defValues" key in each element and if found it will traverse that array as fieldname / value pairs and check.
Properties
$colPos
If set, the content is destined for a specific column.
protected
int|null
$colPos
$iconFactory
protected
IconFactory
$iconFactory
$id
Page id
protected
int
$id
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageInfo
protected
array<string|int, mixed>
$pageInfo
$pageRenderer
protected
PageRenderer
$pageRenderer
$R_URI
Return URL.
protected
string
$R_URI
= ''
$sys_language
Sys language
protected
int
$sys_language
= 0
$uid_pid
protected
int
$uid_pid
$uriBuilder
protected
UriBuilder
$uriBuilder
$view
protected
StandaloneView
$view
Methods
__construct()
public
__construct(IconFactory $iconFactory, PageRenderer $pageRenderer, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory) : mixed
Parameters
- $iconFactory : IconFactory
- $pageRenderer : PageRenderer
- $uriBuilder : UriBuilder
- $moduleTemplateFactory : ModuleTemplateFactory
getColPos()
Provide information about the column position of the button that triggered the wizard
public
getColPos() : int|null
Return values
int|nullgetPageInfo()
Provide information about the current page making use of the wizard
public
getPageInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>getSysLanguage()
Provide information about the language used while triggering the wizard
public
getSysLanguage() : int
Return values
intgetUidPid()
Provide information about the element to position the new element after (uid) or into (pid)
public
getUidPid() : int
Return values
inthandleRequest()
Process incoming request and dispatch to the requested action
public
handleRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacepositionMapAction()
Renders the position map
public
positionMapAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacewizardAction()
Renders the wizard
public
wizardAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacegetAppendWizards()
protected
getAppendWizards(array<string|int, mixed> $wizardElements) : array<string|int, mixed>
Parameters
- $wizardElements : array<string|int, mixed>
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetFluidTemplateObject()
protected
getFluidTemplateObject(string $templateName) : StandaloneView
Parameters
- $templateName : string
Return values
StandaloneViewgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetWizardGroupHeader()
protected
getWizardGroupHeader(array<string|int, mixed> $wizardGroup) : array<string|int, mixed>
Parameters
- $wizardGroup : array<string|int, mixed>
Return values
array<string|int, mixed>getWizardItem()
protected
getWizardItem(array<string|int, mixed> $itemConf) : array<string|int, mixed>
Parameters
- $itemConf : array<string|int, mixed>
Return values
array<string|int, mixed>getWizards()
Returns the array of elements in the wizard display.
protected
getWizards() : array<string|int, mixed>
For the plugin section there is support for adding elements there from a global variable.
Return values
array<string|int, mixed>prepareDependencyOrdering()
Prepare a wizard tab configuration for sorting.
protected
prepareDependencyOrdering(array<string|int, mixed> &$wizardGroup, string $key) : mixed
Parameters
- $wizardGroup : array<string|int, mixed>
-
TypoScript wizard tab configuration
- $key : string
-
Which array key should be prepared
preparePositionMap()
Creating the position map, necessary in case the position of the element has to be defined
protected
preparePositionMap(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
prepareWizardContent()
Creating the module output.
protected
prepareWizardContent(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
Tags
removeInvalidWizardItems()
Checks the array for elements which might contain unallowed default values and will unset them! Looks for the "tt_content_defValues" key in each element and if found it will traverse that array as fieldname / value pairs and check.
protected
removeInvalidWizardItems(array<string|int, mixed> &$wizardItems) : void
The values will be added to the "params" key of the array (which should probably be unset or empty by default).
Parameters
- $wizardItems : array<string|int, mixed>
-
Wizard items, passed by reference