‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer:
TYPO3\CMS\Backend\Form\Container\AbstractContainer TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

array render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 __construct (NodeFactory $nodeFactory, array $data)
 

Protected Member Functions

array createPaletteContentArray ($paletteName)
 
string renderInnerPaletteContent (array $elementArray)
 
string fieldSetWrap ($content, $paletteHidden=false, $label='')
 
string wrapSingleFieldContentWithLabelAndOuterDiv (array $element, array $additionalPaletteClasses=[])
 
bool isUserNoTableWrappingField ($element)
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Container\AbstractContainer
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
array explodeSingleFieldShowItemConfiguration ($field)
 
string renderTabMenu (array $menuItems, $domId, $defaultTabIndex=1)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
string getValidationDataAsJsonString (array $config)
 

Protected Attributes

array $resultArray = array( )
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
NodeFactory $nodeFactory
 
array $data = array( )
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Detailed Description

Handle palettes and single fields.

This container is called by TabsContainer, NoTabsContainer and ListOfFieldsContainer.

This container mostly operates on TCA showItem of a specific type - the value is coming in from upper containers as "fieldArray". It handles palettes with all its different options and prepares rendering of single fields for the SingleFieldContainer.

Definition at line 32 of file PaletteAndSingleContainer.php.

Member Function Documentation

◆ createPaletteContentArray()

array TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer::createPaletteContentArray (   $paletteName)
protected

◆ fieldSetWrap()

string TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer::fieldSetWrap (   $content,
  $paletteHidden = false,
  $label = '' 
)
protected

Wrap content in a field set

Parameters
string$content‪Incoming content
bool$paletteHidden‪TRUE if the palette is hidden
string$label‪Given label
Returns
‪string Wrapped content

Definition at line 340 of file PaletteAndSingleContainer.php.

Referenced by TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\render().

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer::getBackendUser ( )
protected

Returns the current BE user.

Returns
‪BackendUserAuthentication

Definition at line 427 of file PaletteAndSingleContainer.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\wrapSingleFieldContentWithLabelAndOuterDiv().

◆ getLanguageService()

LanguageService TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer::getLanguageService ( )
protected
Returns
‪LanguageService

Definition at line 417 of file PaletteAndSingleContainer.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\render().

◆ isUserNoTableWrappingField()

bool TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer::isUserNoTableWrappingField (   $element)
protected

TRUE if field is of type user and to wrapping is requested

Parameters
array$element‪Current element from "target structure" array
Returns
‪bool TRUE if user and noTableWrapping is set

Definition at line 402 of file PaletteAndSingleContainer.php.

Referenced by TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\render().

◆ render()

◆ renderInnerPaletteContent()

string TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer::renderInnerPaletteContent ( array  $elementArray)
protected

Renders inner content of single elements of a palette and wrap it as needed

Parameters
array$elementArray‪Array of elements
Returns
‪string Wrapped content

Definition at line 254 of file PaletteAndSingleContainer.php.

References $fields, and TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\wrapSingleFieldContentWithLabelAndOuterDiv().

Referenced by TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\render().

◆ wrapSingleFieldContentWithLabelAndOuterDiv()

string TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer::wrapSingleFieldContentWithLabelAndOuterDiv ( array  $element,
array  $additionalPaletteClasses = [] 
)
protected

Wrap a single element

Parameters
array$element‪Given element as documented above
array$additionalPaletteClasses‪Additional classes to be added to HTML
Returns
‪string Wrapped element

Definition at line 366 of file PaletteAndSingleContainer.php.

References $GLOBALS, TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\getBackendUser(), and TYPO3\CMS\Backend\Utility\BackendUtility\wrapInHelp().

Referenced by TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\render(), and TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\renderInnerPaletteContent().

Member Data Documentation

◆ $resultArray

array TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer::$resultArray = array( )
protected

Final result array accumulating results from children and final HTML

Definition at line 38 of file PaletteAndSingleContainer.php.

Referenced by TYPO3\CMS\Backend\Form\Container\PaletteAndSingleContainer\render().