| Methods |
public
|
setPaddingChar(string $paddingChar): $this
Sets padding character, used for cell padding.
Sets padding character, used for cell padding.
|
#
|
public
|
getPaddingChar(): string
Gets padding character, used for cell padding.
Gets padding character, used for cell padding.
|
#
|
public
|
setHorizontalBorderChars(string $outside, string $inside = null): $this
Sets horizontal border characters.
Sets horizontal border characters.
╔═══════════════╤══════════════════════════╤══════════════════╗
1 ISBN 2 Title │ Author ║
╠═══════════════╪══════════════════════════╪══════════════════╣
║ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri ║
║ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens ║
║ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien ║
║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║
╚═══════════════╧══════════════════════════╧══════════════════╝
|
#
|
public
|
setVerticalBorderChars(string $outside, string $inside = null): $this
Sets vertical border characters.
Sets vertical border characters.
╔═══════════════╤══════════════════════════╤══════════════════╗
║ ISBN │ Title │ Author ║
╠═══════1═══════╪══════════════════════════╪══════════════════╣
║ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri ║
║ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens ║
╟───────2───────┼──────────────────────────┼──────────────────╢
║ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien ║
║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║
╚═══════════════╧══════════════════════════╧══════════════════╝
|
#
|
public
|
setCrossingChars(
string $cross,
string $topLeft,
string $topMid,
string $topRight,
string $midRight,
string $bottomRight,
string $bottomMid,
string $bottomLeft,
string $midLeft,
string|null $topLeftBottom = null,
string|null $topMidBottom = null,
string|null $topRightBottom = null,
): $this
Sets crossing characters.
Sets crossing characters.
Example:
1═══════════════2══════════════════════════2══════════════════3
║ ISBN │ Title │ Author ║
8'══════════════0'═════════════════════════0'═════════════════4'
║ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri ║
║ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens ║
8───────────────0──────────────────────────0──────────────────4
║ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien ║
║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║
7═══════════════6══════════════════════════6══════════════════5
Parameters
| $cross |
Crossing char (see #0 of example)
|
| $topLeft |
Top left char (see #1 of example)
|
| $topMid |
Top mid char (see #2 of example)
|
| $topRight |
Top right char (see #3 of example)
|
| $midRight |
Mid right char (see #4 of example)
|
| $bottomRight |
Bottom right char (see #5 of example)
|
| $bottomMid |
Bottom mid char (see #6 of example)
|
| $bottomLeft |
Bottom left char (see #7 of example)
|
| $midLeft |
Mid left char (see #8 of example)
|
| $topLeftBottom |
Top left bottom char (see #8' of example), equals to $midLeft if null
|
| $topMidBottom |
Top mid bottom char (see #0' of example), equals to $cross if null
|
| $topRightBottom |
Top right bottom char (see #4' of example), equals to $midRight if null
|
|
#
|
public
|
setDefaultCrossingChar(string $char): self
Sets default crossing character used for each cross.
Sets default crossing character used for each cross.
|
#
|
public
|
getCrossingChar(): string
Gets crossing character.
|
#
|
public
|
setCellHeaderFormat(string $cellHeaderFormat): $this
Sets header cell format.
|
#
|
public
|
getCellHeaderFormat(): string
Gets header cell format.
|
#
|
public
|
setCellRowFormat(string $cellRowFormat): $this
Sets row cell format.
|
#
|
public
|
getCellRowFormat(): string
Gets row cell format.
|
#
|
public
|
setCellRowContentFormat(string $cellRowContentFormat): $this
Sets row cell content format.
Sets row cell content format.
|
#
|
public
|
getCellRowContentFormat(): string
Gets row cell content format.
Gets row cell content format.
|
#
|
public
|
setBorderFormat(string $borderFormat): $this
Sets table border format.
Sets table border format.
|
#
|
public
|
getBorderFormat(): string
Gets table border format.
Gets table border format.
|
#
|
public
|
setPadType(int $padType): $this
Sets cell padding type.
|
#
|
public
|
getPadType(): int
Gets cell padding type.
|
#
|
public
|
getHeaderTitleFormat(): string
|
#
|
public
|
setHeaderTitleFormat(string $format): $this
|
#
|
public
|
getFooterTitleFormat(): string
|
#
|
public
|
setFooterTitleFormat(string $format): $this
|
#
|
| Properties |
private
|
string
|
$paddingChar = ' '
|
#
|
private
|
string
|
$horizontalOutsideBorderChar = '-'
|
#
|
private
|
string
|
$horizontalInsideBorderChar = '-'
|
#
|
private
|
string
|
$verticalOutsideBorderChar = '|'
|
#
|
private
|
string
|
$verticalInsideBorderChar = '|'
|
#
|
private
|
string
|
$crossingChar = '+'
|
#
|
private
|
string
|
$crossingTopRightChar = '+'
|
#
|
private
|
string
|
$crossingTopMidChar = '+'
|
#
|
private
|
string
|
$crossingTopLeftChar = '+'
|
#
|
private
|
string
|
$crossingMidRightChar = '+'
|
#
|
private
|
string
|
$crossingBottomRightChar = '+'
|
#
|
private
|
string
|
$crossingBottomMidChar = '+'
|
#
|
private
|
string
|
$crossingBottomLeftChar = '+'
|
#
|
private
|
string
|
$crossingMidLeftChar = '+'
|
#
|
private
|
string
|
$crossingTopLeftBottomChar = '+'
|
#
|
private
|
string
|
$crossingTopMidBottomChar = '+'
|
#
|
private
|
string
|
$crossingTopRightBottomChar = '+'
|
#
|
private
|
string
|
$headerTitleFormat = '<fg=black;bg=white;options=bold> %s </>'
|
#
|
private
|
string
|
$footerTitleFormat = '<fg=black;bg=white;options=bold> %s </>'
|
#
|
private
|
string
|
$cellHeaderFormat = '<info>%s</info>'
|
#
|
private
|
string
|
$cellRowFormat = '%s'
|
#
|
private
|
string
|
$cellRowContentFormat = ' %s '
|
#
|
private
|
string
|
$borderFormat = '%s'
|
#
|
private
|
int
|
$padType = STR_PAD_RIGHT
|
#
|