‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\Container\SingleFieldContainer Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Container\SingleFieldContainer:
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\Container\AbstractContainer
 injectNodeFactory (NodeFactory $nodeFactory)
 
 injectBackendViewFactory (BackendViewFactory $backendViewFactory)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 setData (array $data)
 

Protected Member Functions

bool inlineFieldShouldBeSkipped ()
 
bool arrayCompareComplex ($subjectArray, $searchArray, $type='')
 
bool isAssociativeArray ($object)
 
 getLanguageService ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Container\AbstractContainer
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
 explodeSingleFieldShowItemConfiguration (string $field)
 
 renderTabMenu (array $menuItems, string $domId)
 
 wrapWithFieldsetAndLegend (string $fieldContent)
 
 getBackendUserAuthentication ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
 getValidationDataAsJsonString (array $config)
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\Container\AbstractContainer
NodeFactory $nodeFactory
 
BackendViewFactory $backendViewFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array $data = []
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Detailed Description

Container around a "single field".

This container is the last one in the chain before processing is handed over to single element classes. If a single field is of type flex or inline, it however creates FlexFormEntryContainer or InlineControlContainer.

The container does various checks and processing for a given single fields.

Definition at line 34 of file SingleFieldContainer.php.

Member Function Documentation

◆ arrayCompareComplex()

bool TYPO3\CMS\Backend\Form\Container\SingleFieldContainer::arrayCompareComplex (   $subjectArray,
  $searchArray,
  $type = '' 
)
protected

Handles complex comparison requests on an array. A request could look like the following:

$searchArray = array( 'AND' => array( 'key1' => 'value1', 'key2' => 'value2', 'OR' => array( 'subarray' => array( 'subkey' => 'subvalue' ), 'key3' => 'value3', 'key4' => 'value4' ) ) );

It is possible to use the array keys 'AND.1', 'AND.2', etc. to prevent overwriting the sub-array. It could be necessary, if you use complex comparisons.

The example above means, key1 AND key2 (and their values) have to match with the $subjectArray and additional one OR key3 or key4 have to meet the same condition. It is also possible to compare parts of a sub-array (e.g. "subarray"), so this function recurses down one level in that sub-array.

Parameters
array$subjectArray‪The array to search in
array$searchArray‪The array with keys and values to search for
string$type‪Use 'AND' or 'OR' for comparison
Returns
‪bool The result of the comparison

Definition at line 245 of file SingleFieldContainer.php.

References TYPO3\CMS\Backend\Form\Container\SingleFieldContainer\isAssociativeArray().

Referenced by TYPO3\CMS\Backend\Form\Container\SingleFieldContainer\inlineFieldShouldBeSkipped().

◆ getLanguageService()

TYPO3\CMS\Backend\Form\Container\SingleFieldContainer::getLanguageService ( )
protected

Definition at line 307 of file SingleFieldContainer.php.

References $GLOBALS.

◆ inlineFieldShouldBeSkipped()

bool TYPO3\CMS\Backend\Form\Container\SingleFieldContainer::inlineFieldShouldBeSkipped ( )
protected

Rendering of inline fields should be skipped under certain circumstances

Returns
‪bool TRUE if field should be skipped based on inline configuration

Definition at line 155 of file SingleFieldContainer.php.

References TYPO3\CMS\Backend\Form\Container\SingleFieldContainer\arrayCompareComplex().

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

◆ isAssociativeArray()

bool TYPO3\CMS\Backend\Form\Container\SingleFieldContainer::isAssociativeArray (   $object)
protected

Checks whether an object is an associative array.

Parameters
mixed$object‪The object to be checked
Returns
‪bool Returns TRUE, if the object is an associative array

Definition at line 302 of file SingleFieldContainer.php.

Referenced by TYPO3\CMS\Backend\Form\Container\SingleFieldContainer\arrayCompareComplex().

◆ render()