‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\FormDataProvider\TcaCategory Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\FormDataProvider\TcaCategory:
TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider TYPO3\CMS\Backend\Form\FormDataProviderInterface

Public Member Functions

 addData (array $result)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider
array translateLabels (array $result, array $itemArray, $table, $fieldName)
 
 addIconFromAltIcons (array $result, array $items, string $table, string $fieldName)
 
array sanitizeItemArray ($itemArray, $tableName, $fieldName)
 

Protected Member Functions

 overrideConfigFromPageTSconfig (array $result, string $table, string $fieldName, array $fieldConfig)
 
 processCategoryFieldValue (array $result, string $fieldName)
 
 isTargetRenderType ($fieldConfig)
 
 initializeDefaultFieldConfig (array $fieldConfig)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider
array resolveItemProcessorFunction (array $result, $fieldName, array $items)
 
array addItemsFromPageTsConfig (array $result, $fieldName, array $items)
 
array addItemsFromFolder (array $result, $fieldName, array $items)
 
array addItemsFromForeignTable (array $result, $fieldName, array $items, bool $includeFullRows=false)
 
array removeItemsByKeepItemsPageTsConfig (array $result, $fieldName, array $items)
 
array removeItemsByRemoveItemsPageTsConfig (array $result, $fieldName, array $items)
 
array removeItemsByUserLanguageFieldRestriction (array $result, $fieldName, array $items)
 
array removeItemsByUserAuthMode (array $result, $fieldName, array $items)
 
array removeItemsByDoktypeUserRestriction (array $result, $fieldName, array $items)
 
array removeItemsByUserStorageRestriction (array $result, $fieldName, array $items)
 
 buildForeignTableQueryBuilder (array $result, string $localFieldName, bool $selectAllFields=false)
 
array processForeignTableClause (array $result, $foreignTableName, $localFieldName)
 
 parseSiteConfiguration (?SiteInterface $site, string $input)
 
 quoteParsedSiteConfiguration (Connection $connection, array $parsedSiteConfiguration)
 
 replaceParsedSiteConfiguration (string $input, array $parsedSiteConfiguration)
 
 parseStartingPointsFromSiteConfiguration (array $result, array $fieldConfig)
 
array processDatabaseFieldValue (array $row, $fieldName)
 
array processSelectFieldValue (array $result, $fieldName, array $staticValues)
 
int string getLiveUid (array $result)
 
 getLanguageService ()
 
 getBackendUser ()
 

Detailed Description

Data provider for type=category

Used in combination with CategoryElement to create the base HTML for the category tree.

Used in combination with FormSelectTreeAjaxController to fetch the final tree list, this is triggered if $result['selectTreeCompileItems'] is set to true. This way the tree item calculation is only triggered if needed in this ajax context. Writes the prepared item array to ['config']['items'] in this case.

Definition at line 38 of file TcaCategory.php.

Member Function Documentation

◆ addData()

◆ initializeDefaultFieldConfig()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaCategory::initializeDefaultFieldConfig ( array  $fieldConfig)
protected

◆ isTargetRenderType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaCategory::isTargetRenderType (   $fieldConfig)
protected

◆ overrideConfigFromPageTSconfig()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaCategory::overrideConfigFromPageTSconfig ( array  $result,
string  $table,
string  $fieldName,
array  $fieldConfig 
)
protected

A couple of tree specific config parameters can be overwritten via page TS. Pick those that influence the data fetching and write them into the config given to the tree data provider.

Definition at line 139 of file TcaCategory.php.

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

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaCategory\addData().

◆ processCategoryFieldValue()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaCategory::processCategoryFieldValue ( array  $result,
string  $fieldName 
)
protected

Validate and sanitize the category field value.

Definition at line 170 of file TcaCategory.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\getLiveUid().

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaCategory\addData().