FlexFormValueFormatter
class \
The FlexFormValueFormatter formats a FlexForm value into a human-readable format. This is used internally to display changes in FlexForm values as a nicely formatted plain-text diff.
Internal
Table of Contents
Constants
- VALUE_MAX_LENGTH : mixed = 50
Methods
- format() : string
- getElementTitle() : string
- getFlexFormDataStructure() : array
- getLanguageService() : LanguageService
- getProcessedElements() : array
- getProcessedSections() : array
- getProcessedSheets() : array
- getRelationTable() : string|null
- getSectionHeadline() : string
- Get the formatted headline of a FlexForm section
- renderFlexFormValuePlain() : string
- wrapValue() : string
Constants
VALUE_MAX_LENGTH
protected
mixed
VALUE_MAX_LENGTH
= 50
Methods
format()
public
format(string $tableName, string $fieldName, string|null $value, int $uid, array $fieldConfiguration) : string
Parameters
- $tableName : string
- $fieldName : string
- $value : string|null
- $uid : int
- $fieldConfiguration : array
Return values
stringgetElementTitle()
protected
getElementTitle(string $key, array $structure) : string
Parameters
- $key : string
- $structure : array
Return values
stringgetFlexFormDataStructure()
protected
getFlexFormDataStructure(array<string, mixed> $tcaConfiguration, string $tableName, string $fieldName, array<string, mixed> $record) : array
Parameters
- $tcaConfiguration : array<string, mixed>
- $tableName : string
- $fieldName : string
- $record : array<string, mixed>
Return values
arraygetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetProcessedElements()
protected
getProcessedElements(array $dataStructure, array $valueStructure) : array
Parameters
- $dataStructure : array
- $valueStructure : array
Return values
arraygetProcessedSections()
protected
getProcessedSections(array $dataStructure, array $valueStructure) : array
Parameters
- $dataStructure : array
- $valueStructure : array
Return values
arraygetProcessedSheets()
protected
getProcessedSheets(array $dataStructure, array $valueStructure) : array
Parameters
- $dataStructure : array
- $valueStructure : array
Return values
arraygetRelationTable()
protected
getRelationTable(array $configuration) : string|null
Parameters
- $configuration : array
Return values
string|nullgetSectionHeadline()
Get the formatted headline of a FlexForm section
protected
getSectionHeadline(string $title) : string
Parameters
- $title : string
Return values
stringrenderFlexFormValuePlain()
protected
renderFlexFormValuePlain(array<string, mixed> $processedData[, int $currentHierarchy = 1 ]) : string
Parameters
- $processedData : array<string, mixed>
- $currentHierarchy : int = 1
Return values
stringwrapValue()
protected
wrapValue(string $value, string $title) : string
Parameters
- $value : string
- $title : string