TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Form\Container\AbstractContainer Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Container\AbstractContainer:
TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface TYPO3\CMS\Backend\Form\Container\FlexFormContainerContainer TYPO3\CMS\Backend\Form\Container\FlexFormElementContainer TYPO3\CMS\Backend\Form\Container\FlexFormEntryContainer TYPO3\CMS\Backend\Form\Container\FlexFormNoTabsContainer TYPO3\CMS\Backend\Form\Container\FlexFormSectionContainer TYPO3\CMS\Backend\Form\Container\FlexFormTabsContainer TYPO3\CMS\Backend\Form\Container\FullRecordContainer TYPO3\CMS\Backend\Form\Container\InlineControlContainer TYPO3\CMS\Backend\Form\Container\InlineRecordContainer TYPO3\CMS\Backend\Form\Container\ListOfFieldsContainer TYPO3\CMS\Backend\Form\Container\NoTabsContainer TYPO3\CMS\Backend\Form\Container\OuterWrapContainer TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer TYPO3\CMS\Backend\Form\Container\SingleFieldContainer TYPO3\CMS\Backend\Form\Container\SoloFieldContainer TYPO3\CMS\Backend\Form\Container\TabsContainer

Public Member Functions

 __construct (NodeFactory $nodeFactory, array $data)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Form\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 TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
 mergeChildReturnIntoExistingResult (array $existing, array $childReturn)
 
 getValidationDataAsDataAttribute (array $config)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

 $nodeFactory
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Form\AbstractNode
 $data = []
 

Detailed Description

Abstract container has various methods used by the container classes

Definition at line 28 of file AbstractContainer.php.

Constructor & Destructor Documentation

◆ __construct()

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

Container objects give $nodeFactory down to other containers.

Parameters
NodeFactory$nodeFactory
array$data

Implements TYPO3\CMS\Backend\Form\NodeInterface.

Definition at line 43 of file AbstractContainer.php.

References TYPO3\CMS\Backend\Form\Container\AbstractContainer\$nodeFactory.

Member Function Documentation

◆ explodeSingleFieldShowItemConfiguration()

TYPO3\CMS\Backend\Form\Container\AbstractContainer::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

Definition at line 60 of file AbstractContainer.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\createPaletteContentArray(), TYPO3\CMS\Backend\Form\Container\TabsContainer\render(), TYPO3\CMS\Backend\Form\Container\ListOfFieldsContainer\render(), TYPO3\CMS\Backend\Form\Container\SoloFieldContainer\render(), and TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\render().

◆ previewFieldValue()

TYPO3\CMS\Backend\Form\Container\AbstractContainer::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 TYPO3\CMS\Core\Utility\GeneralUtility\formatSize(), TYPO3\CMS\Core\Utility\GeneralUtility\getFileAbsFileName(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode(), and TYPO3\CMS\Backend\Utility\BackendUtility\wrapClickMenuOnIcon().

◆ renderTabMenu()

TYPO3\CMS\Backend\Form\Container\AbstractContainer::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 TYPO3\CMS\Core\Utility\GeneralUtility\getFileAbsFileName(), and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Backend\Form\Container\FlexFormTabsContainer\render(), and TYPO3\CMS\Backend\Form\Container\TabsContainer\render().

Member Data Documentation

◆ $nodeFactory

TYPO3\CMS\Backend\Form\Container\AbstractContainer::$nodeFactory
protected