‪TYPO3CMS  9.5
TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController:
TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait

Public Member Functions

 __construct ()
 
 init (ServerRequestInterface $request=null)
 
ResponseInterface mainAction (ServerRequestInterface $request)
 
ResponseInterface wizardAction (ServerRequestInterface $request)
 
 main ()
 
array wizardArray ()
 
array wizard_appendWizards ($wizardElements)
 
array wizard_getItem ($groupKey, $itemKey, $itemConf)
 
array wizard_getGroupHeader ($groupKey, $wizardGroup)
 
 removeInvalidElements (&$wizardItems)
 
array getPageInfo ()
 
int null getColPos ()
 
int getSysLanguage ()
 
int getUidPid ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait
bool __isset (string $propertyName)
 
mixed __get (string $propertyName)
 
 __set (string $propertyName, $propertyValue)
 
 __unset (string $propertyName)
 

Protected Member Functions

 prepareContent (string $clientContext)
 
 getButtons ()
 
array getWizards ()
 
array getAppendWizards (array $wizardElements)
 
array getWizardItem (string $groupKey, string $itemKey, array $itemConf)
 
array getWizardGroupHeader (array $wizardGroup)
 
 removeInvalidWizardItems (array &$wizardItems)
 
 prepareDependencyOrdering (&$wizardGroup, $key)
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 
StandaloneView getFluidTemplateObject (string $filename='Main.html')
 

Protected Attributes

array $deprecatedPublicProperties
 
int $id
 
int $sys_language = 0
 
string $R_URI = ''
 
int null $colPos
 
int $uid_pid
 
array $modTSconfig = array( )
 
DocumentTemplate $doc
 
string $content
 
bool $access
 
array $config
 
array $pageInfo
 
string $onClickEvent
 
array $MCONF
 
StandaloneView $view
 
StandaloneView $menuItemView
 
ModuleTemplate $moduleTemplate
 

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 42 of file NewContentElementController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::__construct ( )

Member Function Documentation

◆ getAppendWizards()

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

◆ getBackendUser()

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

◆ getButtons()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getButtons ( )
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 702 of file NewContentElementController.php.

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

◆ getFluidTemplateObject()

StandaloneView TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getFluidTemplateObject ( string  $filename = 'Main.html')
protected

◆ 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 692 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 712 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 722 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 ( string  $groupKey,
string  $itemKey,
array  $itemConf 
)
protected

◆ getWizards()

◆ init()

◆ main()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::main ( )

Creating the module output.

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3v10 without substitute

Definition at line 237 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\prepareContent().

◆ mainAction()

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

Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now

Parameters
ServerRequestInterface$request‪the current request
Returns
‪ResponseInterface the response with the content

Definition at line 212 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\prepareContent().

◆ prepareContent()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::prepareContent ( string  $clientContext)
protected

◆ 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 647 of file NewContentElementController.php.

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

◆ removeInvalidElements()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::removeInvalidElements ( $wizardItems)

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 296 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\removeInvalidWizardItems().

◆ 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 568 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\$config, $GLOBALS, TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\$id, TYPO3\CMS\Core\Utility\HttpUtility\buildQueryString(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getBackendUser(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getLanguageService(), and TYPO3\CMS\Backend\Utility\BackendUtility\getTCEFORM_TSconfig().

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

◆ wizard_appendWizards()

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

Definition at line 259 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getAppendWizards().

◆ wizard_getGroupHeader()

array TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::wizard_getGroupHeader (   $groupKey,
  $wizardGroup 
)
Parameters
string$groupKey‪Not used
array$wizardGroup
Returns
‪array

Definition at line 282 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getWizardGroupHeader().

◆ wizard_getItem()

array TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::wizard_getItem (   $groupKey,
  $itemKey,
  $itemConf 
)
Parameters
string$groupKey‪Not used
string$itemKey‪Not used
array$itemConf
Returns
‪array

Definition at line 271 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getWizardItem().

◆ wizardAction()

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

Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now

Parameters
ServerRequestInterface$request‪the current request
Returns
‪ResponseInterface the response with the content

Definition at line 226 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\prepareContent().

◆ wizardArray()

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

Returns the array of elements in the wizard display. For the plugin section there is support for adding elements there from a global variable.

Returns
‪array

Definition at line 249 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getWizards().

Member Data Documentation

◆ $access

bool TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$access
protected

Access boolean.

Definition at line 110 of file NewContentElementController.php.

◆ $colPos

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

◆ $config

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

◆ $content

string TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$content
protected

Used to accumulate the content of the module.

Definition at line 104 of file NewContentElementController.php.

◆ $deprecatedPublicProperties

array TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$deprecatedPublicProperties
protected
Initial value:
= array(
'id' => 'Using $id of NewContentElementController from the outside is discouraged as this variable is used for internal storage.',
'sys_language' => 'Using $sys_language of NewContentElementController from the outside is discouraged as this variable is used for internal storage.',
'R_URI' => 'Using $R_URI of NewContentElementController from the outside is discouraged as this variable is used for internal storage.',
'colPos' => 'Using $colPos of NewContentElementController from the outside is discouraged as this variable is used for internal storage.',
'uid_pid' => 'Using $uid_pid of NewContentElementController from the outside is discouraged as this variable is used for internal storage.',
'modTSconfig' => 'Using $modTSconfig of NewContentElementController from the outside is discouraged as this variable is used for internal storage.',
'doc' => 'Using $doc of NewContentElementController from the outside is discouraged as this variable is used for internal storage.',
'content' => 'Using $content of NewContentElementController from the outside is discouraged as this variable is used for internal storage.',
'access' => 'Using $access of NewContentElementController from the outside is discouraged as this variable is used for internal storage.',
'config' => 'Using $config of NewContentElementController from the outside is discouraged as this variable is used for internal storage.',
)

Definition at line 47 of file NewContentElementController.php.

◆ $doc

DocumentTemplate TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$doc
protected

Internal backend template object

Definition at line 98 of file NewContentElementController.php.

◆ $id

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

◆ $MCONF

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

Definition at line 128 of file NewContentElementController.php.

◆ $menuItemView

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

Definition at line 136 of file NewContentElementController.php.

◆ $modTSconfig

array TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$modTSconfig = array( )
protected

Module TSconfig.

Definition at line 92 of file NewContentElementController.php.

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$moduleTemplate
protected

ModuleTemplate object

Definition at line 142 of file NewContentElementController.php.

◆ $onClickEvent

string TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$onClickEvent
protected

Definition at line 124 of file NewContentElementController.php.

◆ $pageInfo

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

◆ $R_URI

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

Return URL.

Definition at line 76 of file NewContentElementController.php.

◆ $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

◆ $view

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