TYPO3
7.6
|
Public Member Functions | |
addData (array $result) | |
Protected Member Functions | |
addFieldsBySubtypeAddList (array $result, $subtypeFieldName, $subtypeValue, $recordTypeValue) | |
removeFieldsBySubtypeExcludeList (array $result, $subtypeValue, $recordTypeValue) | |
removeFieldsByBitmaskExcludeBits (array $result, $bitmaskValue, $recordTypeValue) | |
removeFields (array $result, array $removeListArray, $recordTypeValue) | |
removeFieldsFromPalettes (array $result, $removeListArray) | |
Protected Attributes | |
$processedTca | |
Create final showitem configuration in processedTca for types and palette fields Handles all the nasty defails like subtypes_addlist and friends.
Definition at line 26 of file TcaTypesShowitem.php.
addData | ( | array | $result | ) |
Set processedTca showitem
array | $result |
Implements FormDataProviderInterface.
Definition at line 41 of file TcaTypesShowitem.php.
References TcaTypesShowitem\addFieldsBySubtypeAddList(), TcaTypesShowitem\removeFieldsByBitmaskExcludeBits(), and TcaTypesShowitem\removeFieldsBySubtypeExcludeList().
|
protected |
Insert additional fields in showitem based on subtypes_addlist
databaseRow['theSubtypeValueField'] = 'theSubtypeValue' showitem = 'foo,theSubtypeValueField,bar' subtype_value_field = 'theSubtypeValueField' subtypes_addlist['theSubtypeValue'] = 'additionalField'
-> showitem = 'foo,theSubtypeValueField,additionalField,bar'
array | $result | Result array |
string | $subtypeFieldName | Field name holding subtype value |
string | $subtypeValue | subtype value |
string | $recordTypeValue | Given record type value |
Definition at line 96 of file TcaTypesShowitem.php.
References elseif, and GeneralUtility\trimExplode().
Referenced by TcaTypesShowitem\addData().
|
protected |
Remove fields from show item field list
array | $result | Given show item list |
array | $removeListArray | Fields to remove |
string | $recordTypeValue | Given record type value |
Definition at line 211 of file TcaTypesShowitem.php.
References GeneralUtility\trimExplode().
Referenced by TcaTypesShowitem\removeFieldsByBitmaskExcludeBits(), and TcaTypesShowitem\removeFieldsBySubtypeExcludeList().
|
protected |
Remove fields from showitem based on subtypes_excludelist
databaseRow['theSubtypeValueField'] = 5 // 1 0 1 showitem = 'foo,toRemoveBy4,bar' bitmask_value_field = 'theSubtypeValueField' bitmask_excludelist_bits[+2] = 'toRemoveBy4'
-> showitem = 'foo,bar'
array | $result | Result array |
string | $bitmaskValue | subtype value |
string | $recordTypeValue | Given record type value |
Definition at line 184 of file TcaTypesShowitem.php.
References MathUtility\forceIntegerInRange(), TcaTypesShowitem\removeFields(), TcaTypesShowitem\removeFieldsFromPalettes(), and GeneralUtility\trimExplode().
Referenced by TcaTypesShowitem\addData().
|
protected |
Remove fields from showitem based on subtypes_excludelist
databaseRow['theSubtypeValueField'] = 'theSubtypeValue' showitem = 'foo,toRemove,bar' subtype_value_field = 'theSubtypeValueField' subtypes_excludelist['theSubtypeValue'] = 'toRemove'
-> showitem = 'foo,bar'
array | $result | Result array |
string | $subtypeValue | subtype value |
string | $recordTypeValue | Given record type value |
Definition at line 156 of file TcaTypesShowitem.php.
References TcaTypesShowitem\removeFields(), TcaTypesShowitem\removeFieldsFromPalettes(), and GeneralUtility\trimExplode().
Referenced by TcaTypesShowitem\addData().
|
protected |
Remove a list of element from all palettes
array | $result | Result array |
array | $removeListArray | Array of elements to remove |
Definition at line 238 of file TcaTypesShowitem.php.
References GeneralUtility\trimExplode().
Referenced by TcaTypesShowitem\removeFieldsByBitmaskExcludeBits(), and TcaTypesShowitem\removeFieldsBySubtypeExcludeList().
|
protected |
Definition at line 33 of file TcaTypesShowitem.php.