TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
TcaRecordTitle Class Reference
Inheritance diagram for TcaRecordTitle:
FormDataProviderInterface

Public Member Functions

 addData (array $result)
 

Protected Member Functions

 getRecordTitleByLabelProperties (array $result)
 
 getRecordTitleForField ($fieldName, $result)
 
 getRecordTitleForRadioType ($value, $fieldConfig)
 
 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 ( array  $result)

Enrich the processed record information with the resolved title

Parameters
array$resultIncoming result array
Returns
array Modified array

Implements FormDataProviderInterface.

Definition at line 37 of file TcaRecordTitle.php.

References GeneralUtility\callUserFunction(), elseif, TcaRecordTitle\getRecordTitleByLabelProperties(), TcaRecordTitle\getRecordTitleForField(), and BackendUtility\getRecordTitlePrep().

getDatabaseConnection ( )
protected
Returns
DatabaseConnection

Definition at line 355 of file TcaRecordTitle.php.

References $GLOBALS.

getLanguageService ( )
protected
Returns
LanguageService

Definition at line 363 of file TcaRecordTitle.php.

References $GLOBALS.

Referenced by TcaRecordTitle\getRecordTitleForCheckboxType(), and TcaRecordTitle\getRecordTitleForInputType().

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 103 of file TcaRecordTitle.php.

References TcaRecordTitle\getRecordTitleForField(), and GeneralUtility\trimExplode().

Referenced by TcaRecordTitle\addData().

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 268 of file TcaRecordTitle.php.

References TcaRecordTitle\getLanguageService().

Referenced by TcaRecordTitle\getRecordTitleForField().

getRecordTitleForField (   $fieldName,
  $result 
)
protected
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 243 of file TcaRecordTitle.php.

References GeneralUtility\trimExplode().

Referenced by TcaRecordTitle\getRecordTitleForField().

getRecordTitleForInputType (   $value,
  $fieldConfig 
)
protected

Returns the record title for input fields

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

Definition at line 294 of file TcaRecordTitle.php.

References $GLOBALS, BackendUtility\calcAge(), BackendUtility\date(), BackendUtility\datetime(), elseif, TcaRecordTitle\getLanguageService(), GeneralUtility\inList(), and BackendUtility\time().

Referenced by TcaRecordTitle\getRecordTitleForField().

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 196 of file TcaRecordTitle.php.

Referenced by TcaRecordTitle\getRecordTitleForField().

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 217 of file TcaRecordTitle.php.

Referenced by TcaRecordTitle\getRecordTitleForField().

getRecordTitleForTextType (   $value)
protected

Returns the record title for text fields

Parameters
mixed$valueCurrent database value of this field
Returns
string

Definition at line 347 of file TcaRecordTitle.php.

Referenced by TcaRecordTitle\getRecordTitleForField().