contenido\classes\class.table.php

Show: PublicProtectedPrivateinherited
Table of Contents
Project: Contenido Content Management System

Description: Generic table builder

Requirements:

Author
Timo A. Hummel  
Con_php_req
5.0  
Copyright
four for business AG  
License
http://www.contenido.org/license/LIZENZ.txt  
Link
http://www.4fb.de  
Link
http://www.contenido.org  
Package
Contenido Backend classes  
Since
file available since contenido release <= 4.6 {@internal created unknown modified 2008-06-30, Frederic Schneider, add security fix modified 2008-07-03, Timo.Trautmann, added linebreaks for readable source code $Id: class.table.php 606 2008-07-11 14:16:44Z dominik.ziegler $: }}  
Version
1.0.2  

\Table

Package: Default

Properties

>VPropertypublicstring $border_color = ''
Table border color
Default value''Details
Type
string
>VPropertypublicstring $border_style = ''
Table border style
Default value''Details
Type
string
>VPropertypublicstring $cell_padding = ''
Table cell padding
Default value''Details
Type
string
>VPropertypublicstring $cell_spacing = ''
Table cell spacing
Default value''Details
Type
string
>VPropertypublicstring $dark_color = ''
Table dark row color
Default value''Details
Type
string
>VPropertypublicbool $dark_row = 0
Internal dark/light row counter
Default value0Details
Type
bool
>VPropertypublic$directoutput = true
Directly output table if true
Default valuetrueDetails
Type
n/a
>VPropertypublicbool $first_cell = 0
Internal first cell checker
Default value0Details
Type
bool
>VPropertypublicbool $fullborder = false
Internal full border checker
Default valuefalseDetails
Type
bool
>VPropertypublicstring $header_color = ''
Table header color
Default value''Details
Type
string
>VPropertypublicstring $light_color = ''
Table light row color
Default value''Details
Type
string
>VPropertypublicint $table_cols = 0
Internal table width counter
Default value0Details
Type
int

Methods

methodpublicTable( $m_bordercolor = "#EEEEEE",  $m_borderstyle = "solid",  $m_cellspacing = "0",  $m_cellpadding = "2",  $m_header_color = "#222222",  $m_light_color = "#AAAAAA",  $m_dark_color = "#777777",  $m_fullborder = false,  $m_directoutput = true) : void

Constructor

Parameters
NameTypeDescription
$m_bordercolor
$m_borderstyle
$m_cellspacing
$m_cellpadding
$m_header_color
$m_light_color
$m_dark_color
$m_fullborder
$m_directoutput
methodpublicborderless_cell( $content,  $align = "center",  $valign = "top",  $additional = "") : void

Outputs a borderless cell

Parameters
NameTypeDescription
$content

The content which will fill the cell

$align

The horizontal alignment of the cell, default "center"

$valign

The vertical alignment of the cell, default "top"

$additional

Additional flags for the table

methodpubliccell( $content,  $align = "center",  $valign = "top",  $additional = "",  $bSetStyle = true) : void

Outputs a regular cell

Parameters
NameTypeDescription
$content

The content which will fill the cell

$align

The horizontal alignment of the cell, default "center"

$valign

The vertical alignment of the cell, default "top"

$additional

Additional flags for the table

$bSetStyle
methodpublicend_row() : void

Ends a row

methodpublicend_table() : void

Ends a table

methodpublicheader_cell( $content,  $align = "center",  $valign = "top",  $additional = "",  $borderTop = 1) : void

Outputs a header cell

Parameters
NameTypeDescription
$content

The content which will fill the cell

$align

The horizontal alignment of the cell, default "center"

$valign

The vertical alignment of the cell, default "top"

$additional
$borderTop
methodpublicheader_row(\none $additional = "") : void

Outputs a header row

Parameters
NameTypeDescription
$additional\none
methodpublicrow(\none $id = '') : void

Outputs a regular row

Parameters
NameTypeDescription
$id\none
methodpublicstart_table() : void

Begins the new table

methodpublicsumcell( $content,  $align = "center",  $valign = "top") : void

Outputs a sum cell

Parameters
NameTypeDescription
$content

The content which will fill the cell

$align

The horizontal alignment of the cell, default "center"

$valign

The vertical alignment of the cell, default "top"

Documentation was generated by phpDocumentor 2.0.0a12.