TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
InlineRecordContainer Class Reference
Inheritance diagram for InlineRecordContainer:
AbstractContainer AbstractNode NodeInterface

Public Member Functions

 __construct (NodeFactory $nodeFactory, array $data)
 
 render ()
 
- Public Member Functions inherited from AbstractContainer
 __construct (NodeFactory $nodeFactory, array $data)
 
- Public Member Functions inherited from AbstractNode
 __construct (NodeFactory $nodeFactory, array $data)
 
 render ()
 

Protected Member Functions

 renderChild (array $data)
 
 renderCombinationChild (array $data, $appendFormFieldNames)
 
 renderForeignRecordHeader (array $data)
 
 normalizeUid ($string)
 
 initHookObjects ()
 
 getBackendUserAuthentication ()
 
 getLanguageService ()
 
- Protected Member Functions inherited from AbstractContainer
 explodeSingleFieldShowItemConfiguration ($field)
 
 renderTabMenu (array $menuItems, $domId, $defaultTabIndex=1)
 
 previewFieldValue ($value, $config, $field= '')
 
- Protected Member Functions inherited from AbstractNode
 initializeResultArray ()
 
 mergeChildReturnIntoExistingResult (array $existing, array $childReturn)
 
 getValidationDataAsDataAttribute (array $config)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

 $inlineData = []
 
 $inlineStackProcessor
 
 $hookObjects = []
 
 $iconFactory
 
- Protected Attributes inherited from AbstractContainer
 $nodeFactory
 
- Protected Attributes inherited from 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 ( NodeFactory  $nodeFactory,
array  $data 
)

Default constructor

Parameters
NodeFactory$nodeFactory
array$data

Implements NodeInterface.

Definition at line 76 of file InlineRecordContainer.php.

References InlineRecordContainer\initHookObjects(), and GeneralUtility\makeInstance().

Member Function Documentation

getBackendUserAuthentication ( )
protected
Returns
BackendUserAuthentication

Definition at line 614 of file InlineRecordContainer.php.

References $GLOBALS.

getLanguageService ( )
protected
Returns
LanguageService

Definition at line 622 of file InlineRecordContainer.php.

References $GLOBALS.

Referenced by InlineRecordContainer\renderCombinationChild(), and InlineRecordContainer\renderForeignRecordHeader().

initHookObjects ( )
protected

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

Exceptions
UnexpectedValueException
Returns
void

Definition at line 594 of file InlineRecordContainer.php.

References $GLOBALS, and GeneralUtility\getUserObj().

Referenced by InlineRecordContainer\__construct().

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

Referenced by InlineRecordContainer\render().

renderChild ( array  $data)
protected

Render inner child

Parameters
array$data
Returns
array Result array

Definition at line 215 of file InlineRecordContainer.php.

References InlineRecordContainer\$inlineData.

Referenced by InlineRecordContainer\render(), and InlineRecordContainer\renderCombinationChild().

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 InlineRecordContainer\getLanguageService(), AbstractNode\initializeResultArray(), AbstractNode\mergeChildReturnIntoExistingResult(), and InlineRecordContainer\renderChild().

Referenced by InlineRecordContainer\render().

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

References $GLOBALS, ProcessedFile\CONTEXT_IMAGEPREVIEW, ResourceFactory\getInstance(), InlineRecordContainer\getLanguageService(), BackendUtility\getRecordIconAltText(), BackendUtility\getRecordTitlePrep(), Icon\SIZE_SMALL, BackendUtility\splitTable_Uid(), and GeneralUtility\trimExplode().

Referenced by InlineRecordContainer\render().

Member Data Documentation

$hookObjects = []
protected

Definition at line 63 of file InlineRecordContainer.php.

$iconFactory
protected

Definition at line 68 of file InlineRecordContainer.php.

$inlineData = []
protected
$inlineStackProcessor
protected

Definition at line 56 of file InlineRecordContainer.php.

Referenced by InlineRecordContainer\render().