TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
NewContentElementController Class Reference
Inheritance diagram for NewContentElementController:
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 AbstractModule
 __construct ()
 
 processRequest (ServerRequestInterface $request, ResponseInterface $response)
 

Public Attributes

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

Protected Member Functions

 getButtons ()
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

 $pageInfo
 
 $elementWrapper
 
 $onClickEvent
 
 $MCONF
 
- Protected Attributes inherited from 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 ( )

Constructor

Definition at line 127 of file NewContentElementController.php.

References $GLOBALS, and NewContentElementController\init().

Member Function Documentation

getBackendUser ( )
protected

Returns the current BE user.

Returns

Definition at line 589 of file NewContentElementController.php.

References $GLOBALS.

Referenced by NewContentElementController\init(), and NewContentElementController\removeInvalidElements().

getButtons ( )
protected

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

Definition at line 360 of file NewContentElementController.php.

References NewContentElementController\getLanguageService(), and Icon\SIZE_SMALL.

Referenced by NewContentElementController\main().

getLanguageService ( )
protected
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 388 of file NewContentElementController.php.

References GeneralUtility\logDeprecatedFunction(), and NewContentElementController\wizardArray().

init ( )
main ( )
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 $response, MessageInterface\getBody(), and NewContentElementController\main().

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

References NewContentElementController\$config, $GLOBALS, GeneralUtility\explodeUrl2Array(), NewContentElementController\getBackendUser(), BackendUtility\getTCEFORM_TSconfig(), GeneralUtility\implodeArrayForUrl(), and GeneralUtility\trimExplode().

Referenced by NewContentElementController\wizardArray().

wizard_appendWizards (   $wizardElements)
Parameters
mixed$wizardElements
Returns
array

Definition at line 444 of file NewContentElementController.php.

References $GLOBALS, and GeneralUtility\makeInstance().

Referenced by NewContentElementController\wizardArray().

wizard_getGroupHeader (   $groupKey,
  $wizardGroup 
)
Parameters
string$groupKeyNot used
array$wizardGroup
Returns
array

Definition at line 485 of file NewContentElementController.php.

References NewContentElementController\getLanguageService().

Referenced by NewContentElementController\wizardArray().

wizard_getItem (   $groupKey,
  $itemKey,
  $itemConf 
)
Parameters
string$groupKeyNot used
string$itemKeyNot used
array$itemConf
Returns
array

Definition at line 471 of file NewContentElementController.php.

References NewContentElementController\getLanguageService().

Referenced by NewContentElementController\wizardArray().

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

References NewContentElementController\removeInvalidElements(), GeneralUtility\trimExplode(), NewContentElementController\wizard_appendWizards(), NewContentElementController\wizard_getGroupHeader(), and NewContentElementController\wizard_getItem().

Referenced by NewContentElementController\getWizardItems(), and NewContentElementController\main().

Member Data Documentation

$access

Definition at line 95 of file NewContentElementController.php.

$colPos

Definition at line 62 of file NewContentElementController.php.

$config
$content

Definition at line 88 of file NewContentElementController.php.

Referenced by NewContentElementController\main().

$doc

Definition at line 81 of file NewContentElementController.php.

$elementWrapper
protected

Definition at line 112 of file NewContentElementController.php.

$id

Definition at line 41 of file NewContentElementController.php.

$MCONF
protected

Definition at line 122 of file NewContentElementController.php.

$modTSconfig = array()

Definition at line 74 of file NewContentElementController.php.

$onClickEvent
protected

Definition at line 117 of file NewContentElementController.php.

$pageInfo
protected

Definition at line 107 of file NewContentElementController.php.

$R_URI = ''

Definition at line 55 of file NewContentElementController.php.

$sys_language = 0

Definition at line 48 of file NewContentElementController.php.

Referenced by NewContentElementController\main().

$uid_pid

Definition at line 67 of file NewContentElementController.php.