class PropertyListTableTransformation extends TableTransformation (View source)

Constants

TABLE_LAYOUT

LIST_LAYOUT

Properties

protected $headers from  TableTransformation
protected $rowLabels from  TableTransformation
protected $layout from  TableTransformation
protected MetadataHolderInterface $originalData from  TableTransformation

Methods

__construct($data, $fieldLabels, $rowLabels = [])

No description

setLayout($layout)

No description

getLayout()

No description

isList()

No description

simplifyToString(FormatterOptions $options)

No description

static 
transformRows($data, $fieldLabels)

No description

static 
transformRow($row, $fieldLabels)

No description

getHeaders()

No description

getHeader($key)

No description

getRowLabels()

No description

getRowLabel($rowid)

No description

getOriginalData()

Return the original data for this table. Used by any formatter that expects an array.

array
getTableData(bool $includeRowKey = false)

Convert structured data into a form suitable for use by the table formatter.

convertTableToList()

No description

getRowDataWithKey($data)

No description

Details

__construct($data, $fieldLabels, $rowLabels = [])

No description

Parameters

$data
$fieldLabels
$rowLabels

setLayout($layout)

No description

Parameters

$layout

getLayout()

No description

isList()

No description

simplifyToString(FormatterOptions $options)

No description

Parameters

FormatterOptions $options

static protected transformRows($data, $fieldLabels)

No description

Parameters

$data
$fieldLabels

static protected transformRow($row, $fieldLabels)

No description

Parameters

$row
$fieldLabels

getHeaders()

No description

getHeader($key)

No description

Parameters

$key

getRowLabels()

No description

getRowLabel($rowid)

No description

Parameters

$rowid

getOriginalData()

Return the original data for this table. Used by any formatter that expects an array.

setOriginalData(MetadataHolderInterface $data)

No description

Parameters

MetadataHolderInterface $data

array getTableData(bool $includeRowKey = false)

Convert structured data into a form suitable for use by the table formatter.

Parameters

bool $includeRowKey

Add a field containing the key from each row.

Return Value

array

protected convertTableToList()

No description

protected getRowDataWithKey($data)

No description

Parameters

$data