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.

$this
setHorizontalBorderChar(string $horizontalBorderChar)

Sets horizontal border character.

string
getHorizontalBorderChar()

Gets horizontal border character.

$this
setVerticalBorderChar(string $verticalBorderChar)

Sets vertical border character.

string
getVerticalBorderChar()

Gets vertical border character.

setCrossingChars(string $cross, string $topLeft, string $topMid, string $topRight, string $midRight, string $bottomRight, string $bottomMid, string $bottomLeft, string $midLeft)

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.

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.

Details

at line line 51
$this setPaddingChar(string $paddingChar)

Sets padding character, used for cell padding.

Parameters

string $paddingChar

Return Value

$this

at line line 67
string getPaddingChar()

Gets padding character, used for cell padding.

Return Value

string

at line line 79
$this setHorizontalBorderChar(string $horizontalBorderChar)

Sets horizontal border character.

Parameters

string $horizontalBorderChar

Return Value

$this

at line line 91
string getHorizontalBorderChar()

Gets horizontal border character.

Return Value

string

at line line 103
$this setVerticalBorderChar(string $verticalBorderChar)

Sets vertical border character.

Parameters

string $verticalBorderChar

Return Value

$this

at line line 115
string getVerticalBorderChar()

Gets vertical border character.

Return Value

string

at line line 144
setCrossingChars(string $cross, string $topLeft, string $topMid, string $topRight, string $midRight, string $bottomRight, string $bottomMid, string $bottomLeft, string $midLeft)

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 | | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien | 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)

at line line 164
setDefaultCrossingChar(string $char)

Sets default crossing character used for each cross.

Parameters

string $char

See also

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

at line line 178
$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 line 190
string getCrossingChar()

Gets crossing character.

Return Value

string $crossingChar

at line line 200
getCrossingChars()

Gets crossing characters.

at line line 222
$this setCellHeaderFormat(string $cellHeaderFormat)

Sets header cell format.

Parameters

string $cellHeaderFormat

Return Value

$this

at line line 234
string getCellHeaderFormat()

Gets header cell format.

Return Value

string

at line line 246
$this setCellRowFormat(string $cellRowFormat)

Sets row cell format.

Parameters

string $cellRowFormat

Return Value

$this

at line line 258
string getCellRowFormat()

Gets row cell format.

Return Value

string

at line line 270
$this setCellRowContentFormat(string $cellRowContentFormat)

Sets row cell content format.

Parameters

string $cellRowContentFormat

Return Value

$this

at line line 282
string getCellRowContentFormat()

Gets row cell content format.

Return Value

string

at line line 294
$this setBorderFormat(string $borderFormat)

Sets table border format.

Parameters

string $borderFormat

Return Value

$this

at line line 306
string getBorderFormat()

Gets table border format.

Return Value

string

at line line 318
$this setPadType(int $padType)

Sets cell padding type.

Parameters

int $padType STRPAD*

Return Value

$this

at line line 334
int getPadType()

Gets cell padding type.

Return Value

int