TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController:
SC_db_new_content_el

Public Member Functions

 init ()
 
 main ()
 
 printContent ()
 
 getWizardItems ()
 
 wizardArray ()
 
 wizard_appendWizards ($wizardElements)
 
 wizard_getItem ($groupKey, $itemKey, $itemConf)
 
 wizard_getGroupHeader ($groupKey, $wizardGroup)
 
 removeInvalidElements (&$wizardItems)
 

Public Attributes

 $id
 
 $sys_language = 0
 
 $R_URI = ''
 
 $colPos
 
 $uid_pid
 
 $modTSconfig = array()
 
 $doc
 
 $include_once = array()
 
 $content
 
 $access
 
 $config
 

Protected Member Functions

 getButtons ()
 

Detailed Description

Script Class for the New Content element wizard

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 26 of file NewContentElementController.php.

Member Function Documentation

◆ getButtons()

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

Create the panel of buttons for submitting the form or otherwise perform operations.

Returns
array All available buttons as an assoc. array

Definition at line 307 of file NewContentElementController.php.

References $GLOBALS, TYPO3\CMS\Backend\Utility\BackendUtility\cshItem(), and TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIcon().

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

◆ getWizardItems()

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

Returns the content of wizardArray() function...

Returns
array Returns the content of wizardArray() function...
Todo:
Define visibility

Definition at line 332 of file NewContentElementController.php.

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

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

◆ init()

◆ main()

◆ printContent()

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

Print out the accumulated content:

Returns
void
Todo:
Define visibility

Definition at line 298 of file NewContentElementController.php.

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

◆ 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
Todo:
Define visibility

Definition at line 442 of file NewContentElementController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\$config, $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\explodeUrl2Array(), 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)
Parameters
mixed$wizardElements
Returns
array
Todo:
Define visibility

Definition at line 387 of file NewContentElementController.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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

◆ wizard_getGroupHeader()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::wizard_getGroupHeader (   $groupKey,
  $wizardGroup 
)
Parameters
stringNot used
array$wizardGroup
Returns
array
Todo:
Define visibility

Definition at line 428 of file NewContentElementController.php.

References $GLOBALS.

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

◆ wizard_getItem()

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::wizard_getItem (   $groupKey,
  $itemKey,
  $itemConf 
)
Parameters
stringNot used
stringNot used
array$itemConf
Returns
array
Todo:
Define visibility

Definition at line 414 of file NewContentElementController.php.

References $GLOBALS.

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

◆ wizardArray()

Member Data Documentation

◆ $access

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$access
Todo:
Define visibility

Definition at line 90 of file NewContentElementController.php.

◆ $colPos

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$colPos
Todo:
Define visibility

Definition at line 51 of file NewContentElementController.php.

◆ $config

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

◆ $content

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

◆ $doc

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

Definition at line 71 of file NewContentElementController.php.

◆ $id

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$id
Todo:
Define visibility

Definition at line 33 of file NewContentElementController.php.

◆ $include_once

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$include_once = array()
Todo:
Define visibility

Definition at line 78 of file NewContentElementController.php.

◆ $modTSconfig

TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::$modTSconfig = array()
Todo:
Define visibility

Definition at line 63 of file NewContentElementController.php.

◆ $R_URI

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

Definition at line 45 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
Todo:
Define visibility

Definition at line 56 of file NewContentElementController.php.