Badtable


Set Heading

The set_heading() method is used to define a row of table heading cells in your table.

set_heading (array heading)

Example:

$heading = array(
	'Name',
	'Color',
	'Size'		
);

$this->badtable->set_heading($heading);

set_heading (array heading [,array attributes])

Example:

$heading = array(
	'Name',
	'Color',
	'Size'		
);

$attr = array(
	'class'	=> 'highlight',
	'align'	=> 'center' 
);

$this->badtable->set_heading($heading, $attr);

set_heading (string heading1 [, string heading2 [, string heading...]])

Example:

$this->badtable->set_heading('Name', 'Color', 'Size');

set_heading (string heading1 [, string heading2 [, string heading... [, array attributes]]])

Example:

$attr = array(
	'class'	=> 'highlight',
	'align'	=> 'center' 
);

$this->badtable->set_heading('Name', 'Color', 'Size', $attr);