class Row

Properties

$number

Row number.

protected $data

Row data.

protected array $attributes

Attributes of row.

protected string $keyName

Methods

__construct($number, $data, $keyName)

Constructor.

mixed
getKey()

Get the value of the model's primary key.

string
getRowAttributes()

Get attributes in html format.

string
getColumnAttributes(string $column)

Get column attributes.

setAttributes(array $attributes)

Set attributes.

style(array|string $style)

Set style of the row.

mixed
model()

Get data of this row.

mixed
__get(mixed $attr)

Getter.

$this|mixed
column(string $name, mixed $value = null)

Get or set value of column in this row.

mixed|string
output(mixed $value)

Output column value.

Details

at line 45
__construct($number, $data, $keyName)

Constructor.

Parameters

$number
$data
$keyName

at line 57
mixed getKey()

Get the value of the model's primary key.

Return Value

mixed

at line 67
string getRowAttributes()

Get attributes in html format.

Return Value

string

at line 79
string getColumnAttributes(string $column)

Get column attributes.

Parameters

string $column

Return Value

string

at line 110
setAttributes(array $attributes)

Set attributes.

Parameters

array $attributes

at line 120
style(array|string $style)

Set style of the row.

Parameters

array|string $style

at line 138
mixed model()

Get data of this row.

Return Value

mixed

at line 150
mixed __get(mixed $attr)

Getter.

Parameters

mixed $attr

Return Value

mixed

at line 163
$this|mixed column(string $name, mixed $value = null)

Get or set value of column in this row.

Parameters

string $name
mixed $value

Return Value

$this|mixed

at line 187
protected mixed|string output(mixed $value)

Output column value.

Parameters

mixed $value

Return Value

mixed|string