Guides

TableRow
in package

FinalYes

Table of Contents

Properties

$columns  : array<string|int, mixed>

Methods

__construct()  : mixed
absorbRowContent()  : void
Push the content from the columns of a row onto this row.
addColumn()  : void
getColumn()  : TableColumn|null
getColumns()  : array<string|int, TableColumn>
getFirstColumn()  : TableColumn
removeColumn()  : void
toString()  : string

Properties

$columns

private array<string|int, mixed> $columns = []

Methods

absorbRowContent()

Push the content from the columns of a row onto this row.

public absorbRowContent(TableRow $targetRow) : void

Useful when we discover that a row is actually just a continuation of this row, and so we want to copy the content to this row's columns before removing the row.

Parameters
$targetRow : TableRow
Tags
throws
InvalidTableStructure

removeColumn()

public removeColumn(int $columnIndex) : void
Parameters
$columnIndex : int

toString()

public toString() : string
Return values
string

        
On this page

Search results