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

Public Member Functions

array addData (array $result)
 
array addInvalidItemsFromDatabase (array $result, $table, $fieldName, array $fieldConf, array $databaseValues, array $removedItems)
 
- ‪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

bool isTargetRenderType (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

Resolve select items, set processed item list in processedTca, sanitize and resolve database field

Definition at line 27 of file TcaSelectItems.php.

Member Function Documentation

◆ addData()

array TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems::addData ( array  $result)

Resolve select items

Returns
‪array
Exceptions

Implements TYPO3\CMS\Backend\Form\FormDataProviderInterface.

Definition at line 35 of file TcaSelectItems.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\addIconFromAltIcons(), TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems\addInvalidItemsFromDatabase(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\addItemsFromFolder(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\addItemsFromForeignTable(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\addItemsFromPageTsConfig(), TYPO3\CMS\Core\Utility\MathUtility\forceIntegerInRange(), TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems\isTargetRenderType(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\processDatabaseFieldValue(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\processSelectFieldValue(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\removeItemsByDoktypeUserRestriction(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\removeItemsByKeepItemsPageTsConfig(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\removeItemsByRemoveItemsPageTsConfig(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\removeItemsByUserAuthMode(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\removeItemsByUserLanguageFieldRestriction(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\removeItemsByUserStorageRestriction(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\resolveItemProcessorFunction(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\sanitizeItemArray(), TYPO3\CMS\Core\Schema\Struct\SelectItem\toArray(), and TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\translateLabels().

◆ addInvalidItemsFromDatabase()

array TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems::addInvalidItemsFromDatabase ( array  $result,
  $table,
  $fieldName,
array  $fieldConf,
array  $databaseValues,
array  $removedItems 
)

Add values that are currently listed in the database columns but not in the selectable items list back to the list.

Parameters
array$result‪The current result array.
string$table‪The current table name
string$fieldName‪The current field name
array$fieldConf‪The configuration of the current field.
array$databaseValues‪The item values from the database, can contain invalid items!
array$removedItems‪Items removed by access checks and restrictions, must not be added as invalid values
Returns
‪array

Definition at line 148 of file TcaSelectItems.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\getLanguageService(), and TYPO3\CMS\Core\Schema\Struct\SelectItem\toArray().

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

◆ isTargetRenderType()

bool TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems::isTargetRenderType ( array  $fieldConfig)
protected

Determines whether the current field is a valid target for this DataProvider

Returns
‪bool

Definition at line 200 of file TcaSelectItems.php.

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