Location: PHPKode > scripts > XHTML Table generator > xhtml-table-generator/Th.php
<?php
/**
 * Title: HTML Table generator
 * Description: Generates XHTML 1.0 Strict tables
 * @requires The LinkedList package. The packages is used to manges rows and table cells
 * @author Oddleif Halvorsen | leif-hide@address.com
 * @version 1.0
 */

include_once("TableCell.php");

class Th extends TableCell{
	function Th($content){
		parent::TableCell($content);
	}
	
	/**
	 * Generates the html code for the th tag
	 * with all the provied attributes
	 * @return The html code for the th tag
	 */
	function getHtml(){	
		$th = "<th";
		
		if(parent::getAttributes() != FALSE)
			$th .= parent::getAttributes();

		$th .= (">" . $this->content . "</th>");
		
		return $th;
	}
}
?>
Return current item: XHTML Table generator