Kotchasan

TableRow
in package

HTML table row class

Tags
see
https://www.kotchasan.com/

Table of Contents

$properties  : array<string|int, mixed>
$tds  : array<string|int, mixed>
__construct()  : mixed
Constructor.
addCell()  : mixed
Add a cell to the row.
create()  : TableRow
Create a new TableRow object.
render()  : string
Render the row to HTML.

Properties

$properties

private array<string|int, mixed> $properties

The properties of the row

$tds

private array<string|int, mixed> $tds

The cells of the row

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $properties = [] ]) : mixed
Parameters
$properties : array<string|int, mixed> = []

The properties of the row

Return values
mixed

addCell()

Add a cell to the row.

public addCell(array<string|int, mixed> $td) : mixed
Parameters
$td : array<string|int, mixed>

The data for the cell

Return values
mixed

create()

Create a new TableRow object.

public static create([array<string|int, mixed> $properties = [] ]) : TableRow
Parameters
$properties : array<string|int, mixed> = []

The properties of the row

Return values
TableRow

The created TableRow object

render()

Render the row to HTML.

public render() : string
Return values
string

The HTML representation of the row

Search results