Methods

Constructor

Table($m_bordercolor, $m_borderstyle, $m_cellspacing, $m_cellpadding, $m_header_color, $m_light_color, $m_dark_color, $m_fullborder, $m_directoutput) 

Parameters

$m_bordercolor

$m_borderstyle

$m_cellspacing

$m_cellpadding

$m_header_color

$m_light_color

$m_dark_color

$m_fullborder

$m_directoutput

Outputs a borderless cell

borderless_cell(\$content $content, \$align $align, \$valign $valign, \$additional $additional) 

Parameters

$content

\$content

The content which will fill the cell

$align

\$align

The horizontal alignment of the cell, default "center"

$valign

\$valign

The vertical alignment of the cell, default "top"

$additional

\$additional

Additional flags for the table

Outputs a regular cell

cell(\$content $content, \$align $align, \$valign $valign, \$additional $additional, $bSetStyle) 

Parameters

$content

\$content

The content which will fill the cell

$align

\$align

The horizontal alignment of the cell, default "center"

$valign

\$valign

The vertical alignment of the cell, default "top"

$additional

\$additional

Additional flags for the table

$bSetStyle

Ends a row

end_row() : void

Ends a table

end_table() : void

Outputs a header cell

header_cell(\$content $content, \$align $align, \$valign $valign, $additional, $borderTop) : void

Parameters

$content

\$content

The content which will fill the cell

$align

\$align

The horizontal alignment of the cell, default "center"

$valign

\$valign

The vertical alignment of the cell, default "top"

$additional

$borderTop

Outputs a header row

header_row($additional) : void

Parameters

$additional

none

Outputs a regular row

row($id) : void

Parameters

$id

none

Begins the new table

start_table() : void

Outputs a sum cell

sumcell(\$content $content, \$align $align, \$valign $valign) 

Parameters

$content

\$content

The content which will fill the cell

$align

\$align

The horizontal alignment of the cell, default "center"

$valign

\$valign

The vertical alignment of the cell, default "top"

 Properties

 

Table border color

$border_color : string

 

Table border style

$border_style : string

 

Table cell padding

$cell_padding : string

 

Table cell spacing

$cell_spacing : string

 

Table dark row color

$dark_color : string

 

Internal dark/light row counter

$dark_row : bool

 

Directly output table if true

$directoutput 

 

Internal first cell checker

$first_cell : bool

 

Internal full border checker

$fullborder : bool

 

Table header color

$header_color : string

 

Table light row color

$light_color : string

 

Internal table width counter

$table_cols : int