TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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 ()
 
 getDatabaseConnection ()
 
 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 = array()
 
 $inlineStackProcessor
 
 $hookObjects = array()
 
 $iconFactory
 
- Protected Attributes inherited from AbstractContainer
 $nodeFactory
 
- Protected Attributes inherited from AbstractNode
 $data = 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 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 593 of file InlineRecordContainer.php.

References $GLOBALS.

getDatabaseConnection ( )
protected
Returns
DatabaseConnection

Definition at line 601 of file InlineRecordContainer.php.

References $GLOBALS.

getLanguageService ( )
protected
Returns
LanguageService

Definition at line 609 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 573 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 559 of file InlineRecordContainer.php.

Referenced by InlineRecordContainer\render().

render ( )
renderChild ( array  $data)
protected

Render inner child

Parameters
array$data
Returns
array Result array

Definition at line 219 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 243 of file InlineRecordContainer.php.

References InlineRecordContainer\getLanguageService(), AbstractNode\initializeResultArray(), GeneralUtility\makeInstance(), AbstractNode\mergeChildReturnIntoExistingResult(), InlineRecordContainer\renderChild(), and AbstractMessage\WARNING.

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

References ProcessedFile\CONTEXT_IMAGECROPSCALEMASK, elseif, ResourceFactory\getInstance(), InlineRecordContainer\getLanguageService(), BackendUtility\getRecordIconAltText(), Icon\SIZE_SMALL, BackendUtility\splitTable_Uid(), and GeneralUtility\trimExplode().

Referenced by InlineRecordContainer\render().

Member Data Documentation

$hookObjects = array()
protected

Definition at line 63 of file InlineRecordContainer.php.

$iconFactory
protected

Definition at line 68 of file InlineRecordContainer.php.

$inlineData = array()
protected
$inlineStackProcessor
protected

Definition at line 56 of file InlineRecordContainer.php.

Referenced by InlineRecordContainer\render().