TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractContainer Class Reference
Inheritance diagram for AbstractContainer:
AbstractNode NodeInterface FlexFormContainerContainer FlexFormElementContainer FlexFormEntryContainer FlexFormNoTabsContainer FlexFormSectionContainer FlexFormTabsContainer FullRecordContainer InlineControlContainer InlineRecordContainer ListOfFieldsContainer NoTabsContainer OuterWrapContainer PaletteAndSingleContainer SingleFieldContainer SoloFieldContainer TabsContainer

Public Member Functions

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

Protected Member Functions

 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

 $nodeFactory
 
- Protected Attributes inherited from AbstractNode
 $data = array()
 

Detailed Description

Abstract container has various methods used by the container classes

Definition at line 28 of file AbstractContainer.php.

Constructor & Destructor Documentation

__construct ( NodeFactory  $nodeFactory,
array  $data 
)

Container objects give $nodeFactory down to other containers.

Parameters
NodeFactory$nodeFactory
array$data

Implements NodeInterface.

Definition at line 43 of file AbstractContainer.php.

References AbstractContainer\$nodeFactory.

Member Function Documentation

explodeSingleFieldShowItemConfiguration (   $field)
protected

A single field of TCA 'types' 'showitem' can have four semicolon separated configuration options: fieldName: Name of the field to be found in TCA 'columns' section fieldLabel: An alternative field label paletteName: Name of a palette to be found in TCA 'palettes' section that is rendered after this field extra: Special configuration options of this field

Parameters
string$fieldSemicolon separated field configuration
Exceptions
\RuntimeException
Returns
array

Definition at line 60 of file AbstractContainer.php.

References GeneralUtility\trimExplode().

Referenced by PaletteAndSingleContainer\createPaletteContentArray(), TabsContainer\render(), ListOfFieldsContainer\render(), SoloFieldContainer\render(), and PaletteAndSingleContainer\render().

previewFieldValue (   $value,
  $config,
  $field = '' 
)
protected

Rendering preview output of a field value which is not shown as a form field but just outputted.

Parameters
string$valueThe value to output
array$configConfiguration for field.
string$fieldName of field.
Returns
string HTML formatted output

Definition at line 104 of file AbstractContainer.php.

References GeneralUtility\formatSize(), GeneralUtility\getFileAbsFileName(), GeneralUtility\makeInstance(), Icon\SIZE_SMALL, GeneralUtility\trimExplode(), and BackendUtility\wrapClickMenuOnIcon().

renderTabMenu ( array  $menuItems,
  $domId,
  $defaultTabIndex = 1 
)
protected

Render tabs with label and content. Used by TabsContainer and FlexFormTabsContainer. Re-uses the template Tabs.html which is also used by ModuleTemplate.php.

Parameters
array$menuItemsTab elements, each element is an array with "label" and "content"
string$domIdDOM id attribute, will be appended with an iteration number per tab.
Returns
string

Definition at line 81 of file AbstractContainer.php.

References GeneralUtility\getFileAbsFileName(), and GeneralUtility\makeInstance().

Referenced by FlexFormTabsContainer\render(), and TabsContainer\render().

Member Data Documentation

$nodeFactory
protected

Definition at line 35 of file AbstractContainer.php.

Referenced by AbstractContainer\__construct().