class TableStyle
Defines the styles for a Table.
| $this | setPaddingChar(string $paddingChar) Sets padding character, used for cell padding. | |
| string | getPaddingChar() Gets padding character, used for cell padding. | |
| TableStyle | setHorizontalBorderChars(string $outside, string $inside = null) Sets horizontal border characters. | |
| $this | setHorizontalBorderChar(string $horizontalBorderChar) deprecated Sets horizontal border character. | |
| string | getHorizontalBorderChar() deprecated Gets horizontal border character. | |
| TableStyle | setVerticalBorderChars(string $outside, string $inside = null) Sets vertical border characters. | |
| $this | setVerticalBorderChar(string $verticalBorderChar) deprecated Sets vertical border character. | |
| string | getVerticalBorderChar() deprecated Gets vertical border character. | |
| getBorderChars() Gets border characters. | ||
| TableStyle | 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) Sets crossing characters. | |
| TableStyle | setDefaultCrossingChar(string $char) Sets default crossing character used for each cross. | |
| $this | setCrossingChar(string $crossingChar) deprecated Sets crossing character. | |
| string | getCrossingChar() Gets crossing character. | |
| array | getCrossingChars() Gets crossing characters. | |
| $this | setCellHeaderFormat(string $cellHeaderFormat) Sets header cell format. | |
| string | getCellHeaderFormat() Gets header cell format. | |
| $this | setCellRowFormat(string $cellRowFormat) Sets row cell format. | |
| string | getCellRowFormat() Gets row cell format. | |
| $this | setCellRowContentFormat(string $cellRowContentFormat) Sets row cell content format. | |
| string | getCellRowContentFormat() Gets row cell content format. | |
| $this | setBorderFormat(string $borderFormat) Sets table border format. | |
| string | getBorderFormat() Gets table border format. | |
| $this | setPadType(int $padType) Sets cell padding type. | |
| int | getPadType() Gets cell padding type. |
Sets padding character, used for cell padding.
| string | $paddingChar |
| $this |
Gets padding character, used for cell padding.
| string |
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 ║
╚═══════════════╧══════════════════════════╧══════════════════╝
| string | $outside | Outside border char (see #1 of example) |
| string | $inside | Inside border char (see #2 of example), equals $outside if null |
| TableStyle |
deprecated
Sets horizontal border character.
| string | $horizontalBorderChar |
| $this |
deprecated
Gets horizontal border character.
| string |
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 ║
╚═══════════════╧══════════════════════════╧══════════════════╝
| string | $outside | Outside border char (see #1 of example) |
| string | $inside | Inside border char (see #2 of example), equals $outside if null |
| TableStyle |
deprecated
Sets vertical border character.
| string | $verticalBorderChar |
| $this |
deprecated
Gets vertical border character.
| string |
Gets border 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
| string | $cross | Crossing char (see #0 of example) |
| string | $topLeft | Top left char (see #1 of example) |
| string | $topMid | Top mid char (see #2 of example) |
| string | $topRight | Top right char (see #3 of example) |
| string | $midRight | Mid right char (see #4 of example) |
| string | $bottomRight | Bottom right char (see #5 of example) |
| string | $bottomMid | Bottom mid char (see #6 of example) |
| string | $bottomLeft | Bottom left char (see #7 of example) |
| string | $midLeft | Mid left char (see #8 of example) |
| string | $topLeftBottom | Top left bottom char (see #8' of example), equals to $midLeft if null |
| string | $topMidBottom | Top mid bottom char (see #0' of example), equals to $cross if null |
| string | $topRightBottom | Top right bottom char (see #4' of example), equals to $midRight if null |
| TableStyle |
Sets default crossing character used for each cross.
| string | $char |
| TableStyle |
| {@link | setCrossingChars()} for setting each crossing individually. |
deprecated
Sets crossing character.
| string | $crossingChar |
| $this |
Gets crossing character.
| string | $crossingChar |
Gets crossing characters.
| array |
Sets header cell format.
| string | $cellHeaderFormat |
| $this |
Gets header cell format.
| string |
Sets row cell format.
| string | $cellRowFormat |
| $this |
Gets row cell format.
| string |
Sets row cell content format.
| string | $cellRowContentFormat |
| $this |
Gets row cell content format.
| string |
Sets table border format.
| string | $borderFormat |
| $this |
Gets table border format.
| string |
Sets cell padding type.
| int | $padType | STR_PAD_* |
| $this |
Gets cell padding type.
| int |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Console/Helper/TableStyle.html