class OptionColumnRenderer extends AbstractColumnRenderer

Class OptionColumnRenderer

Constants

CELL_TYPE

Properties

protected string $identifier from AbstractColumnRenderer
protected string $primaryKey from AbstractColumnRenderer
protected Translator $translator
protected EventDispatcher $eventDispatcher
protected OptionRenderer $optionRenderer

Methods

$this
setIdentifier(string $identifier)

No description

$this
setPrimaryKey(string $primaryKey)

No description

string
fetchDataAndRenderColumn(array $column, array $dbResultRow)

No description

string
render(array $column, string $value = '')

No description

string
addHtmlAttribute(string|array $attributeName, string|null $attributeData = null)

No description

string
getFirstDbField(array $column)

No description

string
getValue(array $column, array $dbResultRow)

No description

string|null
getDbValueIfExists(array $dbResultRow, string $field)

No description

string
getDefaultValue(array $column)

No description

array
getDbFields(array $column)

No description

__construct(Translator $translator, OptionRenderer $optionRenderer, EventDispatcher $eventDispatcher)

No description

string
collectOptions()

No description

Details

$this setIdentifier(string $identifier)

Parameters

string $identifier

Return Value

$this

$this setPrimaryKey(string $primaryKey)

Parameters

string $primaryKey

Return Value

$this

at line 46
string fetchDataAndRenderColumn(array $column, array $dbResultRow)

Parameters

array $column
array $dbResultRow

Return Value

string

protected string render(array $column, string $value = '')

Parameters

array $column
string $value

Return Value

string

protected string addHtmlAttribute(string|array $attributeName, string|null $attributeData = null)

Parameters

string|array $attributeName
string|null $attributeData

Return Value

string

protected string getFirstDbField(array $column)

Parameters

array $column

Return Value

string

in AbstractColumnRenderer at line 109
protected string getValue(array $column, array $dbResultRow)

Parameters

array $column
array $dbResultRow

Return Value

string

in AbstractColumnRenderer at line 127
protected string|null getDbValueIfExists(array $dbResultRow, string $field)

Parameters

array $dbResultRow
string $field

Return Value

string|null

in AbstractColumnRenderer at line 137
protected string getDefaultValue(array $column)

Parameters

array $column

Return Value

string

in AbstractColumnRenderer at line 151
protected array getDbFields(array $column)

Parameters

array $column

Return Value

array

at line 33
__construct(Translator $translator, OptionRenderer $optionRenderer, EventDispatcher $eventDispatcher)

Parameters

Translator $translator
OptionRenderer $optionRenderer
EventDispatcher $eventDispatcher

at line 91
protected string collectOptions()

Return Value

string