Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe TableStyle

Fonctions membres publiques

 setPaddingChar (string $paddingChar)
 
 getPaddingChar ()
 
 setHorizontalBorderChars (string $outside, string $inside=null)
 
 setVerticalBorderChars (string $outside, string $inside=null)
 
 getBorderChars ()
 
 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)
 
 setDefaultCrossingChar (string $char)
 
 getCrossingChar ()
 
 getCrossingChars ()
 
 setCellHeaderFormat (string $cellHeaderFormat)
 
 getCellHeaderFormat ()
 
 setCellRowFormat (string $cellRowFormat)
 
 getCellRowFormat ()
 
 setCellRowContentFormat (string $cellRowContentFormat)
 
 getCellRowContentFormat ()
 
 setBorderFormat (string $borderFormat)
 
 getBorderFormat ()
 
 setPadType (int $padType)
 
 getPadType ()
 
 getHeaderTitleFormat ()
 
 setHeaderTitleFormat (string $format)
 
 getFooterTitleFormat ()
 
 setFooterTitleFormat (string $format)
 

Attributs privés

 $paddingChar = ' '
 
 $horizontalOutsideBorderChar = '-'
 
 $horizontalInsideBorderChar = '-'
 
 $verticalOutsideBorderChar = '|'
 
 $verticalInsideBorderChar = '|'
 
 $crossingChar = '+'
 
 $crossingTopRightChar = '+'
 
 $crossingTopMidChar = '+'
 
 $crossingTopLeftChar = '+'
 
 $crossingMidRightChar = '+'
 
 $crossingBottomRightChar = '+'
 
 $crossingBottomMidChar = '+'
 
 $crossingBottomLeftChar = '+'
 
 $crossingMidLeftChar = '+'
 
 $crossingTopLeftBottomChar = '+'
 
 $crossingTopMidBottomChar = '+'
 
 $crossingTopRightBottomChar = '+'
 
 $headerTitleFormat = '<fg=black;bg=white;options=bold> %s </>'
 
 $footerTitleFormat = '<fg=black;bg=white;options=bold> %s </>'
 
 $cellHeaderFormat = '<info>%s</info>'
 
 $cellRowFormat = '%s'
 
 $cellRowContentFormat = ' %s '
 
 $borderFormat = '%s'
 
 $padType = \STR_PAD_RIGHT
 

Description détaillée

Documentation des fonctions membres

◆ getBorderChars()

◆ getBorderFormat()

getBorderFormat ( )

Gets table border format.

Renvoie
string

Références TableStyle\$borderFormat.

◆ getCellHeaderFormat()

getCellHeaderFormat ( )

Gets header cell format.

Renvoie
string

Références TableStyle\$cellHeaderFormat.

◆ getCellRowContentFormat()

getCellRowContentFormat ( )

Gets row cell content format.

Renvoie
string

Références TableStyle\$cellRowContentFormat.

◆ getCellRowFormat()

getCellRowFormat ( )

Gets row cell format.

Renvoie
string

Références TableStyle\$cellRowFormat.

◆ getCrossingChar()

getCrossingChar ( )

Gets crossing character.

Renvoie
string

Références TableStyle\$crossingChar.

◆ getCrossingChars()

◆ getFooterTitleFormat()

getFooterTitleFormat ( )

◆ getHeaderTitleFormat()

getHeaderTitleFormat ( )

◆ getPaddingChar()

getPaddingChar ( )

Gets padding character, used for cell padding.

Renvoie
string

Références TableStyle\$paddingChar.

◆ getPadType()

getPadType ( )

Gets cell padding type.

Renvoie
int

Références TableStyle\$padType.

◆ setBorderFormat()

setBorderFormat ( string  $borderFormat)

Sets table border format.

Renvoie
$this

Références TableStyle\$borderFormat, et $this.

◆ setCellHeaderFormat()

setCellHeaderFormat ( string  $cellHeaderFormat)

Sets header cell format.

Renvoie
$this

Références TableStyle\$cellHeaderFormat, et $this.

◆ setCellRowContentFormat()

setCellRowContentFormat ( string  $cellRowContentFormat)

Sets row cell content format.

Renvoie
$this

Références TableStyle\$cellRowContentFormat, et $this.

◆ setCellRowFormat()

setCellRowFormat ( string  $cellRowFormat)

Sets row cell format.

Renvoie
$this

Références TableStyle\$cellRowFormat, et $this.

◆ setCrossingChars()

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

Paramètres
string$crossCrossing char (see #0 of example)
string$topLeftTop left char (see #1 of example)
string$topMidTop mid char (see #2 of example)
string$topRightTop right char (see #3 of example)
string$midRightMid right char (see #4 of example)
string$bottomRightBottom right char (see #5 of example)
string$bottomMidBottom mid char (see #6 of example)
string$bottomLeftBottom left char (see #7 of example)
string$midLeftMid left char (see #8 of example)
string | null$topLeftBottomTop left bottom char (see #8' of example), equals to $midLeft if null
string | null$topMidBottomTop mid bottom char (see #0' of example), equals to $cross if null
string | null$topRightBottomTop right bottom char (see #4' of example), equals to $midRight if null
Renvoie
$this

Références $this.

Référencé par TableStyle\setDefaultCrossingChar().

◆ setDefaultCrossingChar()

setDefaultCrossingChar ( string  $char)

Sets default crossing character used for each cross.

Voir également
setCrossingChars() for setting each crossing individually.

Références TableStyle\setCrossingChars().

◆ setFooterTitleFormat()

setFooterTitleFormat ( string  $format)
Renvoie
$this

Références $format, et $this.

◆ setHeaderTitleFormat()

setHeaderTitleFormat ( string  $format)
Renvoie
$this

Références $format, et $this.

◆ setHorizontalBorderChars()

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

Renvoie
$this

Références $this.

◆ setPaddingChar()

setPaddingChar ( string  $paddingChar)

Sets padding character, used for cell padding.

Renvoie
$this

Références TableStyle\$paddingChar, et $this.

◆ setPadType()

setPadType ( int  $padType)

Sets cell padding type.

Renvoie
$this

Références TableStyle\$padType, et $this.

◆ setVerticalBorderChars()

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

Renvoie
$this

Références $this.

Documentation des champs

◆ $borderFormat

$borderFormat = '%s'
private

◆ $cellHeaderFormat

$cellHeaderFormat = '<info>%s</info>'
private

◆ $cellRowContentFormat

$cellRowContentFormat = ' %s '
private

◆ $cellRowFormat

$cellRowFormat = '%s'
private

◆ $crossingBottomLeftChar

$crossingBottomLeftChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $crossingBottomMidChar

$crossingBottomMidChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $crossingBottomRightChar

$crossingBottomRightChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $crossingChar

$crossingChar = '+'
private

◆ $crossingMidLeftChar

$crossingMidLeftChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $crossingMidRightChar

$crossingMidRightChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $crossingTopLeftBottomChar

$crossingTopLeftBottomChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $crossingTopLeftChar

$crossingTopLeftChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $crossingTopMidBottomChar

$crossingTopMidBottomChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $crossingTopMidChar

$crossingTopMidChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $crossingTopRightBottomChar

$crossingTopRightBottomChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $crossingTopRightChar

$crossingTopRightChar = '+'
private

Référencé par TableStyle\getCrossingChars().

◆ $footerTitleFormat

$footerTitleFormat = '<fg=black;bg=white;options=bold> %s </>'
private

◆ $headerTitleFormat

$headerTitleFormat = '<fg=black;bg=white;options=bold> %s </>'
private

◆ $horizontalInsideBorderChar

$horizontalInsideBorderChar = '-'
private

Référencé par TableStyle\getBorderChars().

◆ $horizontalOutsideBorderChar

$horizontalOutsideBorderChar = '-'
private

Référencé par TableStyle\getBorderChars().

◆ $paddingChar

$paddingChar = ' '
private

◆ $padType

$padType = \STR_PAD_RIGHT
private

◆ $verticalInsideBorderChar

$verticalInsideBorderChar = '|'
private

Référencé par TableStyle\getBorderChars().

◆ $verticalOutsideBorderChar

$verticalOutsideBorderChar = '|'
private

Référencé par TableStyle\getBorderChars().


La documentation de cette classe a été générée à partir du fichier suivant :