TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
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 = []
 

Detailed Description

Abstract container has various methods used by the container classes

Definition at line 29 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 44 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 61 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 108 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 82 of file AbstractContainer.php.

References ExtensionManagementUtility\extPath(), and GeneralUtility\makeInstance().

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

Member Data Documentation

$nodeFactory
protected

Definition at line 36 of file AbstractContainer.php.

Referenced by AbstractContainer\__construct().