TableStyle
in package
Defines the styles for a Table.
Tags
Table of Contents
Properties
- $borderFormat : mixed
- $cellHeaderFormat : mixed
- $cellRowContentFormat : mixed
- $cellRowFormat : mixed
- $crossingChar : mixed
- $horizontalBorderChar : mixed
- $paddingChar : mixed
- $padType : mixed
- $verticalBorderChar : mixed
Methods
- getBorderFormat() : string
- Gets table border format.
- getCellHeaderFormat() : string
- Gets header cell format.
- getCellRowContentFormat() : string
- Gets row cell content format.
- getCellRowFormat() : string
- Gets row cell format.
- getCrossingChar() : string
- Gets crossing character.
- getHorizontalBorderChar() : string
- Gets horizontal border character.
- getPaddingChar() : string
- Gets padding character, used for cell padding.
- getPadType() : int
- Gets cell padding type.
- getVerticalBorderChar() : string
- Gets vertical border character.
- setBorderFormat() : $this
- Sets table border format.
- setCellHeaderFormat() : $this
- Sets header cell format.
- setCellRowContentFormat() : $this
- Sets row cell content format.
- setCellRowFormat() : $this
- Sets row cell format.
- setCrossingChar() : $this
- Sets crossing character.
- setHorizontalBorderChar() : $this
- Sets horizontal border character.
- setPaddingChar() : $this
- Sets padding character, used for cell padding.
- setPadType() : $this
- Sets cell padding type.
- setVerticalBorderChar() : $this
- Sets vertical border character.
Properties
$borderFormat
private
mixed
$borderFormat
= '%s'
$cellHeaderFormat
private
mixed
$cellHeaderFormat
= '<info>%s</info>'
$cellRowContentFormat
private
mixed
$cellRowContentFormat
= ' %s '
$cellRowFormat
private
mixed
$cellRowFormat
= '%s'
$crossingChar
private
mixed
$crossingChar
= '+'
$horizontalBorderChar
private
mixed
$horizontalBorderChar
= '-'
$paddingChar
private
mixed
$paddingChar
= ' '
$padType
private
mixed
$padType
= STR_PAD_RIGHT
$verticalBorderChar
private
mixed
$verticalBorderChar
= '|'
Methods
getBorderFormat()
Gets table border format.
public
getBorderFormat() : string
Return values
stringgetCellHeaderFormat()
Gets header cell format.
public
getCellHeaderFormat() : string
Return values
stringgetCellRowContentFormat()
Gets row cell content format.
public
getCellRowContentFormat() : string
Return values
stringgetCellRowFormat()
Gets row cell format.
public
getCellRowFormat() : string
Return values
stringgetCrossingChar()
Gets crossing character.
public
getCrossingChar() : string
Return values
string —$crossingChar
getHorizontalBorderChar()
Gets horizontal border character.
public
getHorizontalBorderChar() : string
Return values
stringgetPaddingChar()
Gets padding character, used for cell padding.
public
getPaddingChar() : string
Return values
stringgetPadType()
Gets cell padding type.
public
getPadType() : int
Return values
intgetVerticalBorderChar()
Gets vertical border character.
public
getVerticalBorderChar() : string
Return values
stringsetBorderFormat()
Sets table border format.
public
setBorderFormat(string $borderFormat) : $this
Parameters
- $borderFormat : string
Return values
$thissetCellHeaderFormat()
Sets header cell format.
public
setCellHeaderFormat(string $cellHeaderFormat) : $this
Parameters
- $cellHeaderFormat : string
Return values
$thissetCellRowContentFormat()
Sets row cell content format.
public
setCellRowContentFormat(string $cellRowContentFormat) : $this
Parameters
- $cellRowContentFormat : string
Return values
$thissetCellRowFormat()
Sets row cell format.
public
setCellRowFormat(string $cellRowFormat) : $this
Parameters
- $cellRowFormat : string
Return values
$thissetCrossingChar()
Sets crossing character.
public
setCrossingChar(string $crossingChar) : $this
Parameters
- $crossingChar : string
Return values
$thissetHorizontalBorderChar()
Sets horizontal border character.
public
setHorizontalBorderChar(string $horizontalBorderChar) : $this
Parameters
- $horizontalBorderChar : string
Return values
$thissetPaddingChar()
Sets padding character, used for cell padding.
public
setPaddingChar(string $paddingChar) : $this
Parameters
- $paddingChar : string
Return values
$thissetPadType()
Sets cell padding type.
public
setPadType(int $padType) : $this
Parameters
- $padType : int
-
STR_PAD_*
Return values
$thissetVerticalBorderChar()
Sets vertical border character.
public
setVerticalBorderChar(string $verticalBorderChar) : $this
Parameters
- $verticalBorderChar : string