TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController:
TYPO3\CMS\Backend\Module\AbstractModule

Public Member Functions

 __construct ()
 
 init ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main ()
 
 getWizardItems ()
 
 wizardArray ()
 
 wizard_appendWizards ($wizardElements)
 
 wizard_getItem ($groupKey, $itemKey, $itemConf)
 
 wizard_getGroupHeader ($groupKey, $wizardGroup)
 
 removeInvalidElements (&$wizardItems)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Module\AbstractModule
 __construct ()
 
 processRequest (ServerRequestInterface $request, ResponseInterface $response)
 

Public Attributes

 $id
 
 $sys_language = 0
 
 $R_URI = ''
 
 $colPos
 
 $uid_pid
 
 $modTSconfig = []
 
 $doc
 
 $content
 
 $access
 
 $config
 

Protected Member Functions

 getButtons ()
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

 $pageInfo
 
 $elementWrapper
 
 $onClickEvent
 
 $MCONF
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Module\AbstractModule
 $moduleTemplate
 
 $request
 

Detailed Description

Script Class for the New Content element wizard

Definition at line 34 of file NewContentElementController.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getBackendUser()

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

◆ getButtons()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::getButtons ( )
protected

◆ getLanguageService()

◆ getWizardItems()

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

Returns the content of wizardArray() function...

Returns
array Returns the content of wizardArray() function...
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8, use "wizardArray()" directly

Definition at line 382 of file NewContentElementController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction(), and TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\wizardArray().

◆ init()

◆ main()

◆ mainAction()

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

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$requestthe current request
ResponseInterface$response
Returns
ResponseInterface the response with the content

Definition at line 177 of file NewContentElementController.php.

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

◆ 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
Returns
void

Definition at line 495 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\$config, $GLOBALS, TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\$id, TYPO3\CMS\Core\Utility\GeneralUtility\explodeUrl2Array(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getBackendUser(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\getLanguageService(), TYPO3\CMS\Backend\Utility\BackendUtility\getTCEFORM_TSconfig(), TYPO3\CMS\Core\Utility\GeneralUtility\implodeArrayForUrl(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

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

◆ wizard_appendWizards()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::wizard_appendWizards (   $wizardElements)

◆ wizard_getGroupHeader()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::wizard_getGroupHeader (   $groupKey,
  $wizardGroup 
)

◆ wizard_getItem()

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

Definition at line 465 of file NewContentElementController.php.

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

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

◆ wizardArray()

Member Data Documentation

◆ $access

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

Definition at line 95 of file NewContentElementController.php.

◆ $colPos

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$colPos

Definition at line 62 of file NewContentElementController.php.

◆ $config

◆ $content

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

◆ $doc

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

Definition at line 81 of file NewContentElementController.php.

◆ $elementWrapper

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$elementWrapper
protected

Definition at line 112 of file NewContentElementController.php.

◆ $id

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

◆ $MCONF

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

Definition at line 122 of file NewContentElementController.php.

◆ $modTSconfig

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$modTSconfig = []

Definition at line 74 of file NewContentElementController.php.

◆ $onClickEvent

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

Definition at line 117 of file NewContentElementController.php.

◆ $pageInfo

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

Definition at line 107 of file NewContentElementController.php.

◆ $R_URI

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

Definition at line 55 of file NewContentElementController.php.

◆ $sys_language

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

◆ $uid_pid

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

Definition at line 67 of file NewContentElementController.php.