Stud.IP  jlu_3.3 Revision
Table Class Reference
Inheritance diagram for Table:
Inheritance graph
Collaboration diagram for Table:
Collaboration graph

Public Member Functions

 Table ($styles=array())
 
 setTableClass ($class)
 
 setTableStyle ($style)
 
 setTableID ($id)
 
 setTableWidth ($width)
 
 setTableBorder ($border)
 
 setTableCellpadding ($padding)
 
 setTableCellspacing ($spacing)
 
 setTableAlign ($align)
 
 setTableBgcolor ($bgcolor)
 
 open ($styles=array())
 
 close ()
 
 setRowBgcolor ($bgcolor)
 
 setRowAlign ($align)
 
 setRowVAlign ($valign)
 
 setRowClass ($class)
 
 setRowStyle ($style)
 
 setRowID ($id)
 
 openRow ($styles=array())
 
 closeRow ()
 
 setCellBgcolor ($bgcolor)
 
 setCellAlign ($align)
 
 setCellVAlign ($valign)
 
 setCellHeight ($height)
 
 setCellWidth ($width)
 
 setCellColspan ($colspan)
 
 setCellClass ($class)
 
 setCellStyle ($style)
 
 setCellID ($id)
 
 setCellNowrap ($nowrap)
 
 openHeaderCell ($styles=array())
 
 openCell ($styles=array(), $tag='td')
 
 closeCell ()
 
 cell ($content, $styles=array())
 
 headerCell ($content, $styles=array())
 
 blankCell ($styles=array())
 
 row ($cells, $styles=array())
 
 blankRow ($styles=array())
 

Detailed Description

HTML table abstraction class.

Encapsulates creation of html tables. Tables, rows and cells are created by openXXX methods and closed by closeXXX methods. Closing of embedded elements can be omitted, i.e. openRow() closes the current row, if still open. Rows and cells have default attributes that can be set by corresponding setRowXXX and setCellXXX methods and are overridden by explicit parameters to single openRow and openCell calls.

@access public

Author
Tobias Thelen tthel.nosp@m.en@u.nosp@m.ni-os.nosp@m.nabr.nosp@m.ueck..nosp@m.de
Todo:

This class misses some documentation.

We should decide whether this class is considered deprecated.

Member Function Documentation

◆ blankCell()

blankCell (   $styles = array())
Here is the call graph for this function:

◆ blankRow()

blankRow (   $styles = array())

Reimplemented in ZebraTable.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cell()

cell (   $content,
  $styles = array() 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ close()

close ( )

Return HTML code for closing table. Includes code for closing still open cells and rows

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeCell()

closeCell ( )
Here is the caller graph for this function:

◆ closeRow()

closeRow ( )
Here is the caller graph for this function:

◆ headerCell()

headerCell (   $content,
  $styles = array() 
)
Here is the call graph for this function:

◆ open()

open (   $styles = array())

Return HTML code opening the table. Includes code for closing table if there's a table still open.

Parameters
arrayKey/value pairs overriding default attributes for table
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openCell()

openCell (   $styles = array(),
  $tag = 'td' 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openHeaderCell()

openHeaderCell (   $styles = array())
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openRow()

openRow (   $styles = array())
Here is the call graph for this function:
Here is the caller graph for this function:

◆ row()

row (   $cells,
  $styles = array() 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCellAlign()

setCellAlign (   $align)

◆ setCellBgcolor()

setCellBgcolor (   $bgcolor)

◆ setCellClass()

setCellClass (   $class)

◆ setCellColspan()

setCellColspan (   $colspan)

◆ setCellHeight()

setCellHeight (   $height)

◆ setCellID()

setCellID (   $id)

◆ setCellNowrap()

setCellNowrap (   $nowrap)

◆ setCellStyle()

setCellStyle (   $style)

◆ setCellVAlign()

setCellVAlign (   $valign)

◆ setCellWidth()

setCellWidth (   $width)

◆ setRowAlign()

setRowAlign (   $align)

◆ setRowBgcolor()

setRowBgcolor (   $bgcolor)

◆ setRowClass()

setRowClass (   $class)

◆ setRowID()

setRowID (   $id)

◆ setRowStyle()

setRowStyle (   $style)

◆ setRowVAlign()

setRowVAlign (   $valign)

◆ setTableAlign()

setTableAlign (   $align)

Set align attribute for table. Only takes effect if table is not opened yet.

Parameters
stringValue for align attribute

◆ setTableBgcolor()

setTableBgcolor (   $bgcolor)

Set bgcolor attribute for table. Only takes effect if table is not opened yet.

Parameters
stringValue for bgcolor attribute

◆ setTableBorder()

setTableBorder (   $border)

Set border attribute for table. Only takes effect if table is not opened yet.

Parameters
stringValue for border attribute

◆ setTableCellpadding()

setTableCellpadding (   $padding)

Set cellpadding attribute for table. Only takes effect if table is not opened yet.

Parameters
stringValue for cellpadding attribute

◆ setTableCellspacing()

setTableCellspacing (   $spacing)

Set cellspacing attribute for table. Only takes effect if table is not opened yet.

Parameters
stringValue for cellspacing attribute

◆ setTableClass()

setTableClass (   $class)

Set Css class for table. Only takes effect if table is not opened yet.

Parameters
stringValue for class attribute

◆ setTableID()

setTableID (   $id)

Set CSS ID for table. Only takes effect if table is not opened yet.

Parameters
stringValue for id attribute

◆ setTableStyle()

setTableStyle (   $style)

Set CSS style for table. Only takes effect if table is not opened yet.

Parameters
stringValue for style attribute

◆ setTableWidth()

setTableWidth (   $width)

Set width attribute for table. Only takes effect if table is not opened yet.

Parameters
stringValue for width attribute

◆ Table()

Table (   $styles = array())

Constructor for a HTML table.

Parameters
arrayList of attribute/value pairs for html styles.
Here is the caller graph for this function:

The documentation for this class was generated from the following file: