TYPO3 CMS  TYPO3_7-6
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)
 
 render ()
 
- 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

 renderChild (array $data)
 
 renderCombinationChild (array $data, $appendFormFieldNames)
 
 renderForeignRecordHeader (array $data)
 
 normalizeUid ($string)
 
 initHookObjects ()
 
 getBackendUserAuthentication ()
 
 getDatabaseConnection ()
 
 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
 
 $hookObjects = []
 
 $iconFactory
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Form\Container\AbstractContainer
 $nodeFactory
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Form\AbstractNode
 $data = []
 

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 44 of file InlineRecordContainer.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getBackendUserAuthentication()

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

Definition at line 599 of file InlineRecordContainer.php.

References $GLOBALS.

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

◆ getDatabaseConnection()

TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::getDatabaseConnection ( )
protected
Returns
DatabaseConnection

Definition at line 607 of file InlineRecordContainer.php.

References $GLOBALS.

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

◆ getLanguageService()

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

◆ initHookObjects()

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

Initialized the hook objects for this class. Each hook object has to implement the interface

Exceptions

Definition at line 579 of file InlineRecordContainer.php.

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

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

◆ normalizeUid()

TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::normalizeUid (   $string)
protected

Normalize a relation "uid" published by transferData, like "1|Company%201"

Parameters
string$stringA transferData reference string, containing the uid
Returns
string The normalized uid

Definition at line 565 of file InlineRecordContainer.php.

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

◆ render()

◆ renderChild()

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

◆ renderCombinationChild()

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$appendFormFieldNamesThe [
[<uid>] of the parent record (the intermediate table)
Returns
array Result array

Definition at line 239 of file InlineRecordContainer.php.

References TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\getLanguageService(), TYPO3\CMS\Backend\Form\AbstractNode\initializeResultArray(), TYPO3\CMS\Backend\Form\AbstractNode\mergeChildReturnIntoExistingResult(), and TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\renderChild().

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

◆ renderForeignRecordHeader()

TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::renderForeignRecordHeader ( array  $data)
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$dataCurrent data
Returns
string The HTML code of the header

Definition at line 294 of file InlineRecordContainer.php.

References TYPO3\CMS\Backend\Form\AbstractNode\$data, $GLOBALS, $uid, TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Core\Type\Bitmask\Permission\CONTENT_EDIT, TYPO3\CMS\Core\Resource\ProcessedFile\CONTEXT_IMAGEPREVIEW, TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\getBackendUserAuthentication(), TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\getDatabaseConnection(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), TYPO3\CMS\Core\Resource\ResourceFactory\getInstance(), TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\getLanguageService(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecord(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordIconAltText(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordTitlePrep(), TYPO3\CMS\Backend\Utility\BackendUtility\isRecordLocked(), TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_DELETE, TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_EDIT, TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_NEW, TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), TYPO3\CMS\Backend\Utility\BackendUtility\readPageAccess(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, TYPO3\CMS\Backend\Utility\BackendUtility\splitTable_Uid(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

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

Member Data Documentation

◆ $hookObjects

TYPO3\CMS\Backend\Form\Container\InlineRecordContainer::$hookObjects = []
protected

Definition at line 63 of file InlineRecordContainer.php.

◆ $iconFactory

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

Definition at line 68 of file InlineRecordContainer.php.

◆ $inlineData

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

◆ $inlineStackProcessor

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