TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle:
TYPO3\CMS\Backend\Form\FormDataProviderInterface

Public Member Functions

 addData (array $result)
 

Protected Member Functions

 getRecordTitleByLabelProperties (array $result)
 
 getRecordTitleForField ($fieldName, $result)
 
 getRecordTitleForRadioType ($value, $fieldConfig)
 
 getRecordTitleForInlineType ($value, array $children)
 
 getRecordTitleForSelectType ($value, $fieldConfig)
 
 getRecordTitleForGroupType ($value, $fieldConfig)
 
 getRecordTitleForCheckboxType ($value, $fieldConfig)
 
 getRecordTitleForInputType ($value, $fieldConfig)
 
 getRecordTitleForTextType ($value)
 
 getDatabaseConnection ()
 
 getLanguageService ()
 

Detailed Description

Determine the title of a record and write it to $result['recordTitle'].

TCA ctrl fields like label and label_alt are evaluated and their current values from databaseRow used to create the title.

Definition at line 29 of file TcaRecordTitle.php.

Member Function Documentation

◆ addData()

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

Enrich the processed record information with the resolved title

Parameters
array$resultIncoming result array
Returns
array Modified array

Implements TYPO3\CMS\Backend\Form\FormDataProviderInterface.

Definition at line 37 of file TcaRecordTitle.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\callUserFunction(), TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleByLabelProperties(), and TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getDatabaseConnection()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getDatabaseConnection ( )
protected
Returns
DatabaseConnection

Definition at line 372 of file TcaRecordTitle.php.

References $GLOBALS.

◆ getLanguageService()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getLanguageService ( )
protected

◆ getRecordTitleByLabelProperties()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleByLabelProperties ( array  $result)
protected

Build the record title from label, label_alt and label_alt_force properties

Parameters
array$resultIncoming result array
Returns
array Modified result array

Definition at line 100 of file TcaRecordTitle.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

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

◆ getRecordTitleForCheckboxType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForCheckboxType (   $value,
  $fieldConfig 
)
protected

Returns the record title for checkbox fields

Parameters
mixed$valueCurrent database value of this field
array$fieldConfigTCA field configuration
Returns
string

Definition at line 285 of file TcaRecordTitle.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getLanguageService().

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getRecordTitleForField()

◆ getRecordTitleForGroupType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForGroupType (   $value,
  $fieldConfig 
)
protected

Return the record title for database records

Parameters
mixed$valueCurrent database value of this field
array$fieldConfigTCA field configuration
Returns
string

Definition at line 258 of file TcaRecordTitle.php.

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

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getRecordTitleForInlineType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForInlineType (   $value,
array  $children 
)
protected
Parameters
int$value
array$children
Returns
string

Definition at line 214 of file TcaRecordTitle.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getRecordTitleForInputType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForInputType (   $value,
  $fieldConfig 
)
protected

◆ getRecordTitleForRadioType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForRadioType (   $value,
  $fieldConfig 
)
protected

Return the record title for radio fields

Parameters
mixed$valueCurrent database value of this field
array$fieldConfigTCA field configuration
Returns
string

Definition at line 194 of file TcaRecordTitle.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getRecordTitleForSelectType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForSelectType (   $value,
  $fieldConfig 
)
protected

Return the record title for database records

Parameters
mixed$valueCurrent database value of this field
array$fieldConfigTCA field configuration
Returns
string

Definition at line 232 of file TcaRecordTitle.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().

◆ getRecordTitleForTextType()

TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForTextType (   $value)
protected

Returns the record title for text fields

Parameters
mixed$valueCurrent database value of this field
Returns
string

Definition at line 364 of file TcaRecordTitle.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle\getRecordTitleForField().