FlexFormValueFormatter

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  = 50

Methods

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>
getRelationLabelUserFunction()  : non-empty-string|null
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<string|int, mixed> $fieldConfiguration) : string
Parameters
$tableName : string
$fieldName : string
$value : string|null
$uid : int
$fieldConfiguration : array<string|int, mixed>
Return values
string

getElementTitle()

protected getElementTitle(string $key, array<string|int, mixed> $structure) : string
Parameters
$key : string
$structure : array<string|int, mixed>
Return values
string

getFlexFormDataStructure()

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>

getProcessedElements()

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>

getRelationLabelUserFunction()

protected getRelationLabelUserFunction(string $relationTable) : non-empty-string|null
Parameters
$relationTable : string
Return values
non-empty-string|null

getRelationTable()

protected getRelationTable(array<string|int, mixed> $configuration) : string|null
Parameters
$configuration : array<string|int, mixed>
Return values
string|null

getSectionHeadline()

Get the formatted headline of a FlexForm section

protected getSectionHeadline(string $title) : string
Parameters
$title : string
Return values
string

renderFlexFormValuePlain()

protected renderFlexFormValuePlain(array<string, mixed> $processedData[, int $currentHierarchy = 1 ]) : string
Parameters
$processedData : array<string, mixed>
$currentHierarchy : int = 1
Return values
string

wrapValue()

protected wrapValue(string $value, string $title) : string
Parameters
$value : string
$title : string
Return values
string

        
On this page

Search results