Defines the styles for a Table.
- author Fabien Potencier
- author Саша Стаменковић
- author Dany Maillard
| Methods |
| public displayOutsideBorder() : bool |
| public getBorderChars() : array Gets border characters.
|
| public getBorderFormat() : string Gets table border format. |
| public getCellHeaderFormat() : string Gets header cell format. |
| public getCellRowContentFormat() : string Gets row cell content format. |
| public getCellRowFormat() : string Gets row cell format. |
| public getCrossingChar() : string Gets crossing character. |
| public getCrossingChars() : array Gets crossing characters.
|
| public getFooterTitleFormat() : string |
| public getHeaderTitleFormat() : string |
| public getPaddingChar() : string Gets padding character, used for cell padding. |
| public getPadType() : int Gets cell padding type. |
| public setBorderFormat(string $borderFormat) : static Sets table border format.
|
| public setCellHeaderFormat(string $cellHeaderFormat) : static Sets header cell format.
|
| public setCellRowContentFormat(string $cellRowContentFormat) : static Sets row cell content format.
|
| public setCellRowFormat(string $cellRowFormat) : static Sets row cell format.
|
| public setCrossingChars(string $cross, string $topLeft, string $topMid, string $topRight, string $midRight, string $bottomRight, string $bottomMid, string $bottomLeft, string $midLeft, ?string $topLeftBottom = NULL, ?string $topMidBottom = NULL, ?string $topRightBottom = NULL) : static 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
|
| public setDefaultCrossingChar(string $char) : Symfony Sets default crossing character used for each cross.
|
| public setDisplayOutsideBorder( $displayOutSideBorder) : static |
public setFooterTitleFormat(string $format) : static
|
public setHeaderTitleFormat(string $format) : static
|
| public setHorizontalBorderChars(string $outside, ?string $inside = NULL) : static Sets horizontal border characters.
|
| public setPaddingChar(string $paddingChar) : static Sets padding character, used for cell padding.
|
| public setPadType(int $padType) : static Sets cell padding type.
|
| public setVerticalBorderChars(string $outside, ?string $inside = NULL) : static Sets vertical border characters.
|
| Properties |
| private string $borderFormat = '%s' |
| private string $cellHeaderFormat = '<info>%s</info>' |
| private string $cellRowContentFormat = ' %s ' |
| private string $cellRowFormat = '%s' |
| private string $crossingBottomLeftChar = '+' |
| private string $crossingBottomMidChar = '+' |
| private string $crossingBottomRightChar = '+' |
| private string $crossingChar = '+' |
| private string $crossingMidLeftChar = '+' |
| private string $crossingMidRightChar = '+' |
| private string $crossingTopLeftBottomChar = '+' |
| private string $crossingTopLeftChar = '+' |
| private string $crossingTopMidBottomChar = '+' |
| private string $crossingTopMidChar = '+' |
| private string $crossingTopRightBottomChar = '+' |
| private string $crossingTopRightChar = '+' |
| private bool $displayOutsideBorder = true |
| private string $footerTitleFormat = '<fg=black;bg=white;options=bold> %s </>' |
| private string $headerTitleFormat = '<fg=black;bg=white;options=bold> %s </>' |
| private string $horizontalInsideBorderChar = '-' |
| private string $horizontalOutsideBorderChar = '-' |
| private string $paddingChar = ' ' |
| private int $padType = 1 |
| private string $verticalInsideBorderChar = '|' |
| private string $verticalOutsideBorderChar = '|' |