class TableStyle

Defines the styles for a Table.

Methods

$this
setPaddingChar(string $paddingChar)

Sets padding character, used for cell padding.

string
getPaddingChar()

Gets padding character, used for cell padding.

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.

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.

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.

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.

string
getHeaderTitleFormat()

No description

setHeaderTitleFormat(string $format)

No description

string
getFooterTitleFormat()

No description

setFooterTitleFormat(string $format)

No description

Details

at line 58
$this setPaddingChar(string $paddingChar)

Sets padding character, used for cell padding.

Parameters

string $paddingChar

Return Value

$this

at line 74
string getPaddingChar()

Gets padding character, used for cell padding.

Return Value

string

at line 96
TableStyle setHorizontalBorderChars(string $outside, string $inside = null)

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 ║ ╚═══════════════╧══════════════════════════╧══════════════════╝

Parameters

string $outside Outside border char (see #1 of example)
string $inside Inside border char (see #2 of example), equals $outside if null

Return Value

TableStyle

at line 113
$this setHorizontalBorderChar(string $horizontalBorderChar) deprecated

deprecated since Symfony 4.1, use {@link setHorizontalBorderChars()} instead.

Sets horizontal border character.

Parameters

string $horizontalBorderChar

Return Value

$this

at line 127
string getHorizontalBorderChar() deprecated

deprecated since Symfony 4.1, use {@link getBorderChars()} instead.

Gets horizontal border character.

Return Value

string

at line 152
TableStyle setVerticalBorderChars(string $outside, string $inside = null)

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 ║ ╚═══════════════╧══════════════════════════╧══════════════════╝

Parameters

string $outside Outside border char (see #1 of example)
string $inside Inside border char (see #2 of example), equals $outside if null

Return Value

TableStyle

at line 169
$this setVerticalBorderChar(string $verticalBorderChar) deprecated

deprecated since Symfony 4.1, use {@link setVerticalBorderChars()} instead.

Sets vertical border character.

Parameters

string $verticalBorderChar

Return Value

$this

at line 183
string getVerticalBorderChar() deprecated

deprecated since Symfony 4.1, use {@link getBorderChars()} instead.

Gets vertical border character.

Return Value

string

at line 195
getBorderChars()

Gets border characters.

at line 234
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.

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

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

Return Value

TableStyle

at line 257
TableStyle setDefaultCrossingChar(string $char)

Sets default crossing character used for each cross.

Parameters

string $char

Return Value

TableStyle

See also

{@link setCrossingChars()} for setting each crossing individually.

at line 271
$this setCrossingChar(string $crossingChar) deprecated

deprecated since Symfony 4.1. Use {@link setDefaultCrossingChar()} instead.

Sets crossing character.

Parameters

string $crossingChar

Return Value

$this

at line 283
string getCrossingChar()

Gets crossing character.

Return Value

string

at line 293
array getCrossingChars()

Gets crossing characters.

Return Value

array

at line 318
$this setCellHeaderFormat(string $cellHeaderFormat)

Sets header cell format.

Parameters

string $cellHeaderFormat

Return Value

$this

at line 330
string getCellHeaderFormat()

Gets header cell format.

Return Value

string

at line 342
$this setCellRowFormat(string $cellRowFormat)

Sets row cell format.

Parameters

string $cellRowFormat

Return Value

$this

at line 354
string getCellRowFormat()

Gets row cell format.

Return Value

string

at line 366
$this setCellRowContentFormat(string $cellRowContentFormat)

Sets row cell content format.

Parameters

string $cellRowContentFormat

Return Value

$this

at line 378
string getCellRowContentFormat()

Gets row cell content format.

Return Value

string

at line 390
$this setBorderFormat(string $borderFormat)

Sets table border format.

Parameters

string $borderFormat

Return Value

$this

at line 402
string getBorderFormat()

Gets table border format.

Return Value

string

at line 414
$this setPadType(int $padType)

Sets cell padding type.

Parameters

int $padType STR_PAD_*

Return Value

$this

at line 430
int getPadType()

Gets cell padding type.

Return Value

int

at line 435
string getHeaderTitleFormat()

Return Value

string

at line 440
TableStyle setHeaderTitleFormat(string $format)

Parameters

string $format

Return Value

TableStyle

at line 447
string getFooterTitleFormat()

Return Value

string

at line 452
TableStyle setFooterTitleFormat(string $format)

Parameters

string $format

Return Value

TableStyle