Methods |
public
|
addHeader($content = ''): object
Adds a column to the table header
Adds a column to the table header
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
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
getHeaders()
Get the row of header
|
#
|
public
|
addRow(array $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): 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
|
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 border line
Add horizontal border line
Returns
LucidFrame\Console\ConsoleTable
|
#
|
public
|
display(): void
Print the table
|
#
|
public
|
getTable(): string
Get the printable table content
Get the printable table content
|
#
|