class Row

This class allows the storage and retrieval of the attributes of a row of a Table object

Properties

private Table $table
private array $cells

Methods

void
__construct(Table $table)

Constructor of class Row

getTable()

Retrieves the Table object to which this row belongs

array
getCells()

Retrieves the list of cells (Cell Object) of this row

void
setCells(array $cells)

Sets the list of cells (Cell Object) of this row

void
addCell(Cell $cell)

Adds a cell (Cell object) to this row

getCell(int $index)

Returns the cell (Cell object) at the given index of the array of cells

Details

at line 62
void __construct(Table $table)

Constructor of class Row

Parameters

Table $table The Table object to which this row belongs

Return Value

void

at line 73
Table getTable()

Retrieves the Table object to which this row belongs

Return Value

Table The Table object

at line 84
array getCells()

Retrieves the list of cells (Cell Object) of this row

Return Value

array The list of cells

at line 96
void setCells(array $cells)

Sets the list of cells (Cell Object) of this row

Parameters

array $cells The list of cells

Return Value

void

at line 108
void addCell(Cell $cell)

Adds a cell (Cell object) to this row

Parameters

Cell $cell The Cell object

Return Value

void

at line 120
Cell getCell(int $index)

Returns the cell (Cell object) at the given index of the array of cells

Parameters

int $index index of a cell in the array of cells

Return Value

Cell The Cell object