xHTML-o-MATIC
A mini framework for handling PHP web frontends.
Loading...
Searching...
No Matches
xHTML_Table Class Reference
+ Inheritance diagram for xHTML_Table:
+ Collaboration diagram for xHTML_Table:

Public Member Functions

 __construct ()
 
 AddContentMatrix ($i, $j, $content)
 
 SetRowProperty ($row, $property, $value)
 
 SetCellProperty ($row, $column, $property, $value)
 
 Render ()
 
 ToString ()
 
 ClearContent ()
 
 SetProperty ($name, $value)
 
 AddCSSClass ($classname)
 
 AddContentBefore ($newContent)
 
 AddContentAfter ($newContent)
 
- Public Member Functions inherited from xHTML_Item
 __construct ($content=NULL)
 
 GetID ()
 
 SetID ($id)
 
 GetParent ()
 
 SetIDVisibility ($visible)
 

Additional Inherited Members

- Protected Member Functions inherited from xHTML_Item
 ClearProperty ($name)
 
 ReplaceContent ($content)
 
 AddContent ($content)
 
 CompactText ($text)
 
- Protected Attributes inherited from xHTML_Item
 $uniqid
 
 $tagname
 
 $contents
 
 $properties
 
 $autoclosed
 
 $bbenabled
 
 $parent
 

Constructor & Destructor Documentation

◆ __construct()

xHTML_Table::__construct ( )

Default constructor

Member Function Documentation

◆ AddContentAfter()

xHTML_Table::AddContentAfter (   $newContent)

Adds content after this one

Parameters
string | xHTML_Item | array$newContent

Reimplemented from xHTML_Item.

◆ AddContentBefore()

xHTML_Table::AddContentBefore (   $newContent)

Adds content before this one

Parameters
string | xHTML_Item | array$newContent

Reimplemented from xHTML_Item.

◆ AddContentMatrix()

xHTML_Table::AddContentMatrix (   $i,
  $j,
  $content 
)

Adds content to matrix

Parameters
row$i
column$j
xHTML_Item | string$contentContent to add

◆ AddCSSClass()

xHTML_Table::AddCSSClass (   $classname)

Adds a CSS class to this object

Parameters
string$classnameCSS class name

Reimplemented from xHTML_Item.

◆ ClearContent()

xHTML_Table::ClearContent ( )

Clears content

Reimplemented from xHTML_Item.

◆ Render()

xHTML_Table::Render ( )

Renders the table

Reimplemented from xHTML_Item.

◆ SetCellProperty()

xHTML_Table::SetCellProperty (   $row,
  $column,
  $property,
  $value 
)

Add a property to a cell

Parameters
int$rowRow number
int$columnColumn
string$propertyProperty name
string$valueProperty value

◆ SetProperty()

xHTML_Table::SetProperty (   $name,
  $value 
)

Sets a property

Parameters
string$nameProperty name
string$valueProperty value

Reimplemented from xHTML_Item.

◆ SetRowProperty()

xHTML_Table::SetRowProperty (   $row,
  $property,
  $value 
)

Set property for a row

Parameters
int$rowRow number
string$propertyProperty name
string$valueProperty value

◆ ToString()

xHTML_Table::ToString ( )

Gets contents' string

Returns
string

Reimplemented from xHTML_Item.


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