TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Form\Container\InlineControlContainer Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Container\InlineControlContainer:
TYPO3\CMS\Backend\Form\Container\AbstractContainer TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

 __construct (NodeFactory $nodeFactory, array $data)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Form\Container\AbstractContainer
 __construct (NodeFactory $nodeFactory, array $data)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Form\AbstractNode
 __construct (NodeFactory $nodeFactory, array $data)
 
 render ()
 

Protected Member Functions

 getLevelInteractionLink ($type, $objectPrefix, $conf=[])
 
 wrapWithAnchor ($text, $link, $attributes=[])
 
 renderPossibleRecordsSelectorTypeGroupDB (array $inlineConfiguration)
 
 renderPossibleRecordsSelectorTypeSelect (array $config, array $uniqueIds)
 
 extractFlexFormParts ($formElementName)
 
 getBackendUserAuthentication ()
 
 getLanguageService ()
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Form\Container\AbstractContainer
 explodeSingleFieldShowItemConfiguration ($field)
 
 renderTabMenu (array $menuItems, $domId, $defaultTabIndex=1)
 
 previewFieldValue ($value, $config, $field='')
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
 mergeChildReturnIntoExistingResult (array $existing, array $childReturn)
 
 getValidationDataAsDataAttribute (array $config)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

 $inlineData = []
 
 $inlineStackProcessor
 
 $iconFactory
 
 $requireJsModules = []
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Form\Container\AbstractContainer
 $nodeFactory
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Form\AbstractNode
 $data = []
 

Detailed Description

Inline element entry container.

This container is the entry step to rendering an inline element. It is created by SingleFieldContainer.

The code creates the main structure for the single inline elements, initializes the inlineData array, that is manipulated and also returned back in its manipulated state. The "control" stuff of inline elements is rendered here, for example the "create new" button.

For each existing inline relation an InlineRecordContainer is called for further processing.

Definition at line 40 of file InlineControlContainer.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::__construct ( NodeFactory  $nodeFactory,
array  $data 
)

Member Function Documentation

◆ extractFlexFormParts()

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::extractFlexFormParts (   $formElementName)
protected

Extracts FlexForm parts of a form element name like data[table][uid][field][sDEF][lDEF][FlexForm][vDEF] Helper method used in inline

Parameters
string$formElementNameThe form element name
Returns
array|NULL

Definition at line 601 of file InlineControlContainer.php.

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

Referenced by TYPO3\CMS\Backend\Form\Container\InlineControlContainer\__construct().

◆ getBackendUserAuthentication()

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::getBackendUserAuthentication ( )
protected
Returns
BackendUserAuthentication

Definition at line 617 of file InlineControlContainer.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Form\Container\InlineControlContainer\renderPossibleRecordsSelectorTypeGroupDB().

◆ getLanguageService()

◆ getLevelInteractionLink()

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::getLevelInteractionLink (   $type,
  $objectPrefix,
  $conf = [] 
)
protected

Creates the HTML code of a general link to be used on a level of inline children. The possible keys for the parameter $type are 'newRecord', 'localize' and 'synchronize'.

Parameters
string$typeThe link type, values are 'newRecord', 'localize' and 'synchronize'.
string$objectPrefixThe "path" to the child record to create (e.g. 'data-parentPageId-partenTable-parentUid-parentField-childTable]')
array$confTCA configuration of the parent(!) field
Returns
string The HTML code of the new link, wrapped in a div

Definition at line 348 of file InlineControlContainer.php.

References $GLOBALS, TYPO3\CMS\Backend\Form\Container\InlineControlContainer\getLanguageService(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\Form\Container\InlineControlContainer\wrapWithAnchor().

Referenced by TYPO3\CMS\Backend\Form\Container\InlineControlContainer\__construct().

◆ renderPossibleRecordsSelectorTypeGroupDB()

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::renderPossibleRecordsSelectorTypeGroupDB ( array  $inlineConfiguration)
protected

◆ renderPossibleRecordsSelectorTypeSelect()

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::renderPossibleRecordsSelectorTypeSelect ( array  $config,
array  $uniqueIds 
)
protected

Get a selector as used for the select type, to select from all available records and to create a relation to the embedding record (e.g. like MM).

Parameters
array$configTCA inline configuration of the parent(!) field
array$uniqueIdsThe uids that have already been used and should be unique
Returns
string A HTML <select> box with all possible records

Definition at line 546 of file InlineControlContainer.php.

References TYPO3\CMS\Core\Utility\MathUtility\forceIntegerInRange(), TYPO3\CMS\Backend\Form\Container\InlineControlContainer\getLanguageService(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\Form\Container\InlineControlContainer\__construct().

◆ wrapWithAnchor()

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::wrapWithAnchor (   $text,
  $link,
  $attributes = [] 
)
protected

Wraps a text with an anchor and returns the HTML representation.

Parameters
string$textThe text to be wrapped by an anchor
string$linkThe link to be used in the anchor
array$attributesArray of attributes to be used in the anchor
Returns
string The wrapped text as HTML representation

Definition at line 405 of file InlineControlContainer.php.

Referenced by TYPO3\CMS\Backend\Form\Container\InlineControlContainer\getLevelInteractionLink().

Member Data Documentation

◆ $iconFactory

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::$iconFactory
protected

Definition at line 57 of file InlineControlContainer.php.

◆ $inlineData

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::$inlineData = []
protected

◆ $inlineStackProcessor

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::$inlineStackProcessor
protected

◆ $requireJsModules

TYPO3\CMS\Backend\Form\Container\InlineControlContainer::$requireJsModules = []
protected

Definition at line 62 of file InlineControlContainer.php.