Row
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.
at line 57
mixed
getKey()
Get the value of the model's primary key.
at line 67
string
getRowAttributes()
Get attributes in html format.
at line 79
string
getColumnAttributes(string $column)
Get column attributes.
at line 110
setAttributes(array $attributes)
Set attributes.
at line 120
style(array|string $style)
Set style of the row.
at line 138
mixed
model()
Get data of this row.
at line 150
mixed
__get(mixed $attr)
Getter.
at line 163
$this|mixed
column(string $name, mixed $value = null)
Get or set value of column in this row.
at line 187
protected mixed|string
output(mixed $value)
Output column value.