Documentation

TextGrid
in package

Table of Contents

Properties

$columns  : array<string|int, mixed>
$matrix  : array<string|int, mixed>
$rows  : array<string|int, mixed>
$gridDisplay  : string
$isCli  : bool

Methods

__construct()  : mixed
render()  : string
getColumnWidth()  : int
getColumnWidths()  : array<string|int, mixed>
renderCells()  : void
renderColumnHeader()  : void
renderFooter()  : void
renderRows()  : void

Properties

$columns

protected array<string|int, mixed> $columns

$matrix

protected array<string|int, mixed> $matrix

$rows

protected array<string|int, mixed> $rows

$gridDisplay

private string $gridDisplay

Methods

__construct()

public __construct(array<string|int, mixed> $matrix[, bool $isCli = true ]) : mixed
Parameters
$matrix : array<string|int, mixed>
$isCli : bool = true

render()

public render() : string
Return values
string

getColumnWidth()

private getColumnWidth(array<string|int, mixed> $columnData) : int
Parameters
$columnData : array<string|int, mixed>
Return values
int

getColumnWidths()

private getColumnWidths() : array<string|int, mixed>
Return values
array<string|int, mixed>

renderCells()

private renderCells(array<string|int, mixed> $rowData, array<string|int, mixed> $columnWidths) : void
Parameters
$rowData : array<string|int, mixed>
$columnWidths : array<string|int, mixed>

renderColumnHeader()

private renderColumnHeader(int $maxRowLength, array<string|int, mixed> $columnWidths) : void
Parameters
$maxRowLength : int
$columnWidths : array<string|int, mixed>

renderFooter()

private renderFooter(int $maxRowLength, array<string|int, mixed> $columnWidths) : void
Parameters
$maxRowLength : int
$columnWidths : array<string|int, mixed>

renderRows()

private renderRows(int $maxRowLength, array<string|int, mixed> $columnWidths) : void
Parameters
$maxRowLength : int
$columnWidths : array<string|int, mixed>

        
On this page

Search results