FlexFormValueFormatter
Read onlyYes
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.
Table of Contents
Constants
- VALUE_MAX_LENGTH = 50
Methods
- __construct() : mixed
- format() : string
- getElementTitle() : string
- getFlexFormDataStructure() : array<string|int, mixed>
- getLanguageService() : LanguageService
- getProcessedElements() : array<string|int, mixed>
- getProcessedSections() : array<string|int, mixed>
- getProcessedSheets() : array<string|int, mixed>
- 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
__construct()
public
__construct(FlexFormTools $flexFormTools, TcaSchemaFactory $tcaSchemaFactory) : mixed
Parameters
- $flexFormTools : FlexFormTools
- $tcaSchemaFactory : TcaSchemaFactory
format()
public
format(string $tableName, string $fieldName, string|null $value, int $uid, array<string|int, mixed> $fieldConfiguration) : string
Parameters
- $tableName : string
- $fieldName : string
- $value : string|null
- $uid : int
- $fieldConfiguration : array<string|int, mixed>
Return values
stringgetElementTitle()
protected
getElementTitle(string $key, array<string|int, mixed> $structure) : string
Parameters
- $key : string
- $structure : array<string|int, mixed>
Return values
stringgetFlexFormDataStructure()
protected
getFlexFormDataStructure(array<string, mixed> $tcaConfiguration, string $tableName, string $fieldName, array<string, mixed> $record) : array<string|int, mixed>
Parameters
- $tcaConfiguration : array<string, mixed>
- $tableName : string
- $fieldName : string
- $record : array<string, mixed>
Return values
array<string|int, mixed>getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetProcessedElements()
protected
getProcessedElements(array<string|int, mixed> $dataStructure, array<string|int, mixed> $valueStructure) : array<string|int, mixed>
Parameters
- $dataStructure : array<string|int, mixed>
- $valueStructure : array<string|int, mixed>
Return values
array<string|int, mixed>getProcessedSections()
protected
getProcessedSections(array<string|int, mixed> $dataStructure, array<string|int, mixed> $valueStructure) : array<string|int, mixed>
Parameters
- $dataStructure : array<string|int, mixed>
- $valueStructure : array<string|int, mixed>
Return values
array<string|int, mixed>getProcessedSheets()
protected
getProcessedSheets(array<string|int, mixed> $dataStructure, array<string|int, mixed> $valueStructure) : array<string|int, mixed>
Parameters
- $dataStructure : array<string|int, mixed>
- $valueStructure : array<string|int, mixed>
Return values
array<string|int, mixed>getRelationTable()
protected
getRelationTable(array<string|int, mixed> $configuration) : string|null
Parameters
- $configuration : array<string|int, mixed>
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