FlexFormValueFormatter

class \TYPO3\CMS\Backend\View\ValueFormatter\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.

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

string

getElementTitle()

protected getElementTitle(string $key, array $structure) : string

Parameters

$key : string
$structure : array

Return values

string

getFlexFormDataStructure()

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

array

getProcessedElements()

protected getProcessedElements(array $dataStructure, array $valueStructure) : array

Parameters

$dataStructure : array
$valueStructure : array

Return values

array

getProcessedSections()

protected getProcessedSections(array $dataStructure, array $valueStructure) : array

Parameters

$dataStructure : array
$valueStructure : array

Return values

array

getProcessedSheets()

protected getProcessedSheets(array $dataStructure, array $valueStructure) : array

Parameters

$dataStructure : array
$valueStructure : array

Return values

array

getRelationTable()

protected getRelationTable(array $configuration) : string|null

Parameters

$configuration : array

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