‪TYPO3CMS  11.5
TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController Class Reference

Public Member Functions

 __construct (IconFactory $iconFactory, PageRenderer $pageRenderer, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory)
 
ResponseInterface handleRequest (ServerRequestInterface $request)
 
 wizardAction (ServerRequestInterface $request)
 
 positionMapAction (ServerRequestInterface $request)
 
array getPageInfo ()
 
int null getColPos ()
 
int getSysLanguage ()
 
int getUidPid ()
 

Protected Member Functions

 prepareWizardContent (ServerRequestInterface $request)
 
 preparePositionMap (ServerRequestInterface $request)
 
array getWizards ()
 
array getAppendWizards (array $wizardElements)
 
array getWizardItem (array $itemConf)
 
array getWizardGroupHeader (array $wizardGroup)
 
 removeInvalidWizardItems (array &$wizardItems)
 
 prepareDependencyOrdering (&$wizardGroup, $key)
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 
StandaloneView getFluidTemplateObject (string $templateName)
 

Protected Attributes

int $id
 
int $sys_language = 0
 
string $R_URI = ''
 
int null $colPos
 
int $uid_pid
 
array $pageInfo
 
StandaloneView $view
 
IconFactory $iconFactory
 
PageRenderer $pageRenderer
 
UriBuilder $uriBuilder
 
ModuleTemplateFactory $moduleTemplateFactory
 

Detailed Description

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.

Definition at line 44 of file NewContentElementController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ getAppendWizards()

array TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getAppendWizards ( array  $wizardElements)
protected
Parameters
array$wizardElements
Returns
‪array

Definition at line 330 of file NewContentElementController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getWizards().

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getBackendUser ( )
protected

◆ getColPos()

int null TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getColPos ( )

Provide information about the column position of the button that triggered the wizard

Returns
‪int|null

Definition at line 524 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\$colPos.

◆ getFluidTemplateObject()

◆ getLanguageService()

◆ getPageInfo()

array TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getPageInfo ( )

Provide information about the current page making use of the wizard

Returns
‪array

Definition at line 514 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\$pageInfo.

◆ getSysLanguage()

int TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getSysLanguage ( )

Provide information about the language used while triggering the wizard

Returns
‪int

Definition at line 534 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\$sys_language.

◆ getUidPid()

int TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getUidPid ( )

Provide information about the element to position the new element after (uid) or into (pid)

Returns
‪int

Definition at line 544 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\$uid_pid.

◆ getWizardGroupHeader()

array TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getWizardGroupHeader ( array  $wizardGroup)
protected

◆ getWizardItem()

array TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getWizardItem ( array  $itemConf)
protected

◆ getWizards()

◆ handleRequest()

ResponseInterface TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::handleRequest ( ServerRequestInterface  $request)

◆ positionMapAction()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::positionMapAction ( ServerRequestInterface  $request)

◆ prepareDependencyOrdering()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::prepareDependencyOrdering ( $wizardGroup,
  $key 
)
protected

Prepare a wizard tab configuration for sorting.

Parameters
array$wizardGroup‪TypoScript wizard tab configuration
string$key‪Which array key should be prepared

Definition at line 471 of file NewContentElementController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getWizards().

◆ preparePositionMap()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::preparePositionMap ( ServerRequestInterface  $request)
protected

◆ prepareWizardContent()

◆ removeInvalidWizardItems()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::removeInvalidWizardItems ( array &  $wizardItems)
protected

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. The values will be added to the "params" key of the array (which should probably be unset or empty by default).

Parameters
array$wizardItemsWizard items, passed by reference

Definition at line 390 of file NewContentElementController.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\HttpUtility\buildQueryString(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getBackendUser(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getLanguageService(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getWizards().

◆ wizardAction()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::wizardAction ( ServerRequestInterface  $request)

Member Data Documentation

◆ $colPos

int null TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$colPos
protected

◆ $iconFactory

IconFactory TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$iconFactory
protected

◆ $id

int TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$id
protected

Page id

Definition at line 50 of file NewContentElementController.php.

◆ $moduleTemplateFactory

ModuleTemplateFactory TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$moduleTemplateFactory
protected

◆ $pageInfo

array TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$pageInfo
protected

◆ $pageRenderer

PageRenderer TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$pageRenderer
protected

◆ $R_URI

string TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$R_URI = ''
protected

◆ $sys_language

int TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$sys_language = 0
protected

◆ $uid_pid

int TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$uid_pid
protected

◆ $uriBuilder

UriBuilder TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$uriBuilder
protected

◆ $view

StandaloneView TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$view
protected