‪TYPO3CMS  11.5
TYPO3\CMS\Backend\Form\Container\InlineRecordContainer Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Container\InlineRecordContainer:
TYPO3\CMS\Backend\Form\Container\AbstractContainer TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

 __construct (NodeFactory $nodeFactory, array $data)
 
array render ()
 

Protected Member Functions

array renderChild (array $data)
 
array renderCombinationChild (array $data, $appendFormFieldNames)
 
string renderForeignRecordHeader (array $data, string $ariaAttributesString)
 
string renderForeignRecordHeaderControl (array $data)
 
 initHookObjects ()
 
BackendUserAuthentication getBackendUserAuthentication ()
 
LanguageService getLanguageService ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Container\AbstractContainer
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
array explodeSingleFieldShowItemConfiguration ($field)
 
string renderTabMenu (array $menuItems, $domId, $defaultTabIndex=1)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
string getValidationDataAsJsonString (array $config)
 

Protected Attributes

array $inlineData = array( )
 
InlineStackProcessor $inlineStackProcessor
 
array $hookObjects = array( )
 
IconFactory $iconFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
NodeFactory $nodeFactory
 
array $data = []
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Detailed Description

Render a single inline record relation.

This container is called by InlineControlContainer to render single existing records. Furthermore it is called by FormEngine for an incoming ajax request to expand an existing record or to create a new one.

This container creates the outer HTML of single inline records - eg. drag and drop and delete buttons. For rendering of the record itself processing is handed over to FullRecordContainer.

Definition at line 47 of file InlineRecordContainer.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getBackendUserAuthentication()

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

◆ getLanguageService()

◆ initHookObjects()

TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::initHookObjects ( )
protected

Initialized the hook objects for this class. Each hook object has to implement the interface \TYPO3\CMS\Backend\Form\Element\InlineElementHookInterface

Exceptions

Definition at line 668 of file InlineRecordContainer.php.

References $GLOBALS.

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

◆ render()

◆ renderChild()

array TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::renderChild ( array  $data)
protected

◆ renderCombinationChild()

array TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::renderCombinationChild ( array  $data,
  $appendFormFieldNames 
)
protected

Render child child

Render a table with FormEngine, that occurs on an intermediate table but should be editable directly, so two tables are combined (the intermediate table with attributes and the sub-embedded table). -> This is a direct embedding over two levels!

Parameters
array$data
string$appendFormFieldNames‪The [
‪[<uid>] of the parent record (the intermediate table)
Returns
‪array Result array

Definition at line 263 of file InlineRecordContainer.php.

References TYPO3\CMS\Backend\Form\AbstractNode\$data, TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\getLanguageService(), TYPO3\CMS\Backend\Form\AbstractNode\initializeResultArray(), TYPO3\CMS\Backend\Form\AbstractNode\mergeChildReturnIntoExistingResult(), TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\renderChild(), and TYPO3\CMS\Core\Localization\LanguageService\sL().

Referenced by TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\render().

◆ renderForeignRecordHeader()

string TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::renderForeignRecordHeader ( array  $data,
string  $ariaAttributesString 
)
protected

Renders the HTML header for a foreign record, such as the title, toggle-function, drag'n'drop, etc. Later on the command-icons are inserted here.

Parameters
array$data‪Current data
string$ariaAttributesString‪HTML aria attributes for the collapse button
Returns
‪string The HTML code of the header

Definition at line 328 of file InlineRecordContainer.php.

References TYPO3\CMS\Backend\Form\AbstractNode\$data, $GLOBALS, TYPO3\CMS\Core\Resource\ProcessedFile\CONTEXT_IMAGECROPSCALEMASK, TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection\create(), TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\getBackendUserAuthentication(), TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\getLanguageService(), TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\renderForeignRecordHeaderControl(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\render().

◆ renderForeignRecordHeaderControl()

string TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::renderForeignRecordHeaderControl ( array  $data)
protected

Render the control-icons for a record header (create new, sorting, delete, disable/enable). Most of the parts are copy&paste from TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList and modified for the JavaScript calls here

Parameters
array$data‪Current data
Returns
‪string The HTML code with the control-icons

Definition at line 427 of file InlineRecordContainer.php.

References TYPO3\CMS\Backend\Form\AbstractNode\$data, $GLOBALS, TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\getBackendUserAuthentication(), TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\getLanguageService(), TYPO3\CMS\Core\Type\Bitmask\Permission\NOTHING, TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW, TYPO3\CMS\Core\Database\Connection\PARAM_INT, and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\renderForeignRecordHeader().

Member Data Documentation

◆ $hookObjects

array TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::$hookObjects = array( )
protected

Array containing instances of hook classes called once for IRRE objects

Definition at line 63 of file InlineRecordContainer.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::$iconFactory
protected

Definition at line 67 of file InlineRecordContainer.php.

◆ $inlineData

array TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::$inlineData = array( )
protected

◆ $inlineStackProcessor

InlineStackProcessor TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::$inlineStackProcessor
protected