‪TYPO3CMS  11.5
TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions Class Reference

Public Member Functions

 __construct ()
 
 populateAvailableTables (array &$fieldDefinition)
 
 populateAvailablePageTypes (array &$fieldDefinition)
 
 populateAvailableGroupModules (array &$fieldDefinition)
 
 populateAvailableUserModules (array &$fieldDefinition)
 
 populateExcludeFields (array &$fieldDefinition)
 
 populateExplicitAuthValues (array &$fieldDefinition)
 
 populateCustomPermissionOptions (array &$fieldDefinition)
 
 populateAvailableCategoryFields (array &$fieldDefinition)
 

Protected Member Functions

array getAvailableModules (string $context, array $items)
 
array getGroupedExcludeFields ()
 
array getRegisteredFlexForms (string $table)
 
array getGroupedExplicitAuthFieldValues ()
 
 getLanguageService ()
 

Protected Attributes

IconFactory $iconFactory
 
IconRegistry $iconRegistry
 

Detailed Description

Various items processor functions, mainly used for special select fields in be_users and be_groups

This class is a hook implementation and is not part of the TYPO3 Core API.

Definition at line 34 of file TcaItemsProcessorFunctions.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::__construct ( )

Definition at line 39 of file TcaItemsProcessorFunctions.php.

Member Function Documentation

◆ getAvailableModules()

array TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::getAvailableModules ( string  $context,
array  $items 
)
protected

◆ getGroupedExcludeFields()

array TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::getGroupedExcludeFields ( )
protected

Returns an array with the exclude fields as defined in TCA and FlexForms Used for listing the exclude fields in be_groups forms.

Returns
‪array Array of arrays with excludeFields (fieldName, table:fieldName) from TCA and FlexForms (fieldName, table:extKey;sheetName;fieldName)

Definition at line 291 of file TcaItemsProcessorFunctions.php.

References $extConf, $GLOBALS, TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions\getLanguageService(), and TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions\getRegisteredFlexForms().

Referenced by TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions\populateExcludeFields().

◆ getGroupedExplicitAuthFieldValues()

array TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::getGroupedExplicitAuthFieldValues ( )
protected

Returns an array with explicit Allow/Deny fields. Used for listing these field/value pairs in be_groups forms

Returns
‪array Array with information from all of $GLOBALS['TCA']

Definition at line 454 of file TcaItemsProcessorFunctions.php.

References $GLOBALS, and TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions\getLanguageService().

Referenced by TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions\populateExplicitAuthValues().

◆ getLanguageService()

◆ getRegisteredFlexForms()

array TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::getRegisteredFlexForms ( string  $table)
protected

Returns FlexForm data structures it finds. Used in select "special" for be_groups to set "exclude" flags for single flex form fields.

This only finds flex forms registered in 'ds' config sections. This does not resolve other sophisticated flex form data structure references.

Todo:

: This approach is limited and doesn't find everything. It works for casual tt_content plugins, though:

: The data structure identifier determination depends on data row, but we don't have all rows at hand here.

: The code thus "guesses" some standard data structure identifier scenarios and tries to resolve those.

: This guessing can not be solved in a good way. A general registry of "all" possible data structures is

: probably not wanted, since that wouldn't work for truly dynamic DS calculations. Probably the only

: thing we could do here is a hook to allow extensions declaring specific data structures to

: allow backend admins to set exclude flags for certain fields in those cases.

Parameters
string$table‪Table to handle
Returns
‪array Data structures

Definition at line 406 of file TcaItemsProcessorFunctions.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions\getGroupedExcludeFields().

◆ populateAvailableCategoryFields()

TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::populateAvailableCategoryFields ( array &  $fieldDefinition)

Populates a list of category fields (with the defined relationships) for the given table

Parameters
array$fieldDefinition

Definition at line 199 of file TcaItemsProcessorFunctions.php.

References $GLOBALS, TYPO3\CMS\Core\Category\CategoryRegistry\getCategoryFieldsForTable(), TYPO3\CMS\Core\Category\CategoryRegistry\getInstance(), and TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions\getLanguageService().

◆ populateAvailableGroupModules()

TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::populateAvailableGroupModules ( array &  $fieldDefinition)

◆ populateAvailablePageTypes()

TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::populateAvailablePageTypes ( array &  $fieldDefinition)

Definition at line 60 of file TcaItemsProcessorFunctions.php.

References $GLOBALS.

◆ populateAvailableTables()

TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::populateAvailableTables ( array &  $fieldDefinition)

◆ populateAvailableUserModules()

TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::populateAvailableUserModules ( array &  $fieldDefinition)

◆ populateCustomPermissionOptions()

TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::populateCustomPermissionOptions ( array &  $fieldDefinition)

◆ populateExcludeFields()

TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::populateExcludeFields ( array &  $fieldDefinition)

◆ populateExplicitAuthValues()

TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::populateExplicitAuthValues ( array &  $fieldDefinition)

Member Data Documentation

◆ $iconFactory

IconFactory TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::$iconFactory
protected

Definition at line 36 of file TcaItemsProcessorFunctions.php.

◆ $iconRegistry

IconRegistry TYPO3\CMS\Core\Hooks\TcaItemsProcessorFunctions::$iconRegistry
protected

Definition at line 37 of file TcaItemsProcessorFunctions.php.