Constructor HTML_Table::HTML_Table()

Constructor HTML_Table::HTML_Table() – Constructor

Synopsis

require_once 'HTML/Table.php';

void HTML_Table::HTML_Table ( array $attributes = null , integer $tabOffset=0 , boolean $useTGroups = false )

Description

Class constructor

Parameter

  • array $attributes - Associative array of table tag attributes

  • integer $tabOffset - Tab offset of the table

  • boolean $useTGroups - Whether to use the thead, tfoot and tbody groups or not

Note

This function can not be called statically.

Answers to most Frequently Asked Questions (Previous) Add body (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

Note by: cweiske
After creating the table you can still change attributes. HTML_Table extends HTML_Common which provides methods like setAttribute('attname', 'attavalue');
Note by: cweiske
The attributes parameter takes an array of actual html table tag attributes, e.g.
$table = new HTML_Table(array('border' => '1', 'class' => 'cssclass'));