Exemple #1
0
 function __construct($buildmode)
 {
     //		if ($mode == 0)
     //		{
     tag::$mtag = new dtag();
     //		}
     //		if ($mode == 1)
     //		{
     //			tag::$mtag = new rtag ( );
     //		}
     $this->buildmode = $buildmode;
     if ($buildmode != tengcoremodes::$unmanaged) {
         switch ($buildmode) {
             case tengcoremodes::$managed_html_frameset:
                 $this->html = new html(doctype::$html_frameset);
                 break;
             case tengcoremodes::$managed_html_loose:
                 $this->html = new html(doctype::$html_loose);
                 break;
             case tengcoremodes::$managed_html_strict:
                 $this->html = new html(doctype::$html_strict);
                 break;
             case tengcoremodes::$managed_xhtml_frameset:
                 $this->html = new html(doctype::$xhtml_frameset);
                 break;
             case tengcoremodes::$managed_xhtml_loose:
                 $this->html = new html(doctype::$xhtml_loose);
                 break;
             case tengcoremodes::$managed_xhtml_strict:
                 $this->html = new html(doctype::$xhtml_strict);
                 break;
         }
         $this->head = new head();
         $this->body = new body();
         $this->html->SetHead($this->head);
         $this->html->SetBody($this->body);
     } else {
         $this->container = array();
     }
 }