Methods |
public
|
addHeader(mixed $content = '', string $align = self::ALIGN_LEFT): object
Add a column to the table header
Add a column to the table header
Parameters
$content |
Header cell content
|
$align |
The text alignment ('left' or 'right')
|
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
setHeaders(array $content): object
Set headers for the columns in one-line
Set headers for the columns in one-line
Parameters
$content |
Array of header cell content
|
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
getHeaders()
Get the row of header
|
#
|
public
|
addRow(array|null $data = null): object
Adds a row to the table
Parameters
$data |
The row data to add
|
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
addColumn(mixed $content, integer $col = null, integer $row = null, string $align = self::ALIGN_LEFT): object
Adds a column to the table
Adds a column to the table
Parameters
$content |
The data of the column
|
$col |
The column index to populate
|
$row |
If starting row is not zero, specify it here
|
$align |
The text alignment ('left' or 'right')
|
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
setColumnAlign(integer $col, string $align = self::ALIGN_LEFT): object
Set alignment for a specific column
Set alignment for a specific column
Parameters
$col |
The column index
|
$align |
The alignment ('left' or 'right')
|
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
showBorder(): object
Show table border
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
hideBorder(): object
Hide table border
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
showAllBorders(): object
Show all table borders
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
setPadding(integer $value = 1): object
Set padding for each cell
Set padding for each cell
Parameters
$value |
The integer value, defaults to 1
|
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
setIndent(integer $value = 0): object
Set left indentation for the table
Set left indentation for the table
Parameters
$value |
The integer value, defaults to 1
|
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
addBorderLine(): object
Add horizontal borderline
Add horizontal borderline
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
addFooter(mixed $content = '', string $align = self::ALIGN_LEFT): object
Add a column to the table footer
Add a column to the table footer
Parameters
$content |
Footer cell content
|
$align |
The text alignment ('left' or 'right')
|
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
setFooters(array $content): object
Set footers for the columns in one-line
Set footers for the columns in one-line
Parameters
$content |
Array of footer cell content
|
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
getFooters()
Get the row of footer
|
#
|
public
|
display(): void
Print the table
|
#
|
public
|
getTable(): string
Get the printable table content
Get the printable table content
|
#
|