public function __construct() { try { if (!Page::$html_set || !Page::$head_set || !Page::$body_set) { throw new PageException("<b>Table class exception.</b><br />Either <html> or <head> or <body> is not set.</b><br />\n\t\t\t\t\tAll these tags need to be set in this order to generate valid html forms."); } } catch (PageException $e) { echo $e->getMessage(); } self::$table_set = TRUE; }