Documentation

Table

Table of Contents

$header  : array<string|int, mixed>
Table header.
$items  : array<string|int, mixed>
Table item.
__construct()  : void
Create a new Table instance.
draw()  : void
Draw the table.
printBorder()  : array<string|int, mixed>
Print table border.
printRow()  : self
Print the row.

Properties

$header

Table header.

private array<string|int, mixed> $header = []
Tags
since
1.0.0

$items

Table item.

private array<string|int, mixed> $items = []
Tags
since
1.0.0

Methods

__construct()

Create a new Table instance.

public __construct(array<string|int, mixed> $header, array<string|int, mixed> $items) : void
Parameters
$header : array<string|int, mixed>
$items : array<string|int, mixed>
Return values
void

draw()

Draw the table.

public draw() : void
Tags
since
1.0.0
Return values
void

printBorder()

Print table border.

public printBorder(mixed $row) : array<string|int, mixed>
Parameters
$row : mixed
Tags
since
1.0.0
Return values
array<string|int, mixed>

printRow()

Print the row.

public printRow(mixed $row[, mixed $head = false ]) : self
Parameters
$row : mixed
$head : mixed = false
Tags
since
1.0.0
Return values
self

Search results