Example #1
0
File: Head.php Project: broozer/psa
 function __construct()
 {
     try {
         if (!Page::getHtml_set()) {
             throw new PageException("<b>Head class exception</b><br>Html tag is not yet defined.</b><br> \n\t            Please define &lt;html&gt; tag first.");
         }
     } catch (PageException $e) {
         echo $e->getMessage();
     }
     Page::$head_set = TRUE;
 }
Example #2
0
File: Body.php Project: broozer/psa
 public function __construct()
 {
     try {
         if (!Page::getHtml_set()) {
             throw new WebException("<b>Body class exception</b><br />Html tag is not yet defined.</b><br>\n\t\t\t\t  Please define &lt;html&gt; tag first.");
         }
         if (!Page::getHead_set()) {
             throw new WebException("<b>Body class exception</b><br />Head tag is not yet defined.</b><br>\n\t\t\t\t  Please define &lt;head&gt; tag first.");
         }
     } catch (WebException $e) {
         echo $e->getMessage();
     }
     Page::$body_set = TRUE;
 }