Exemplo n.º 1
0
 /**
  * Método Construtor
  * Constrói uma Página HTML
  * @param <type> $tilePage
  */
 public function __construct($titlePage = NULL)
 {
     parent::__construct('html');
     $this->head = new HTMLHead();
     $this->body = new HTMLBody();
     $this->title = new HTMLTitle($titlePage);
 }
Exemplo n.º 2
0
 public function __construct($id = NULL)
 {
     parent::__construct('dl');
     if (!is_null($id)) {
         $this->setAttribute('id', $id);
     }
 }
Exemplo n.º 3
0
 public function __construct($name)
 {
     parent::__construct("form");
     $this->name = "{$name}";
     $this->id = "{$name}";
     $this->enctype = "application/x-www-form-urlencoded";
 }
Exemplo n.º 4
0
 /**
  *
  * @param string $href
  */
 public function __construct($href = null)
 {
     parent::__construct("link");
     $this->rel = "stylesheet";
     $this->type = "text/css";
     if (!is_null($href)) {
         $this->href = $href;
     }
 }
Exemplo n.º 5
0
 /**
  *
  * @param string $href
  */
 public function __construct($href = '', $text = '', $target = null)
 {
     if ($href instanceof Url) {
         $href = $href->queryString();
     }
     parent::__construct("a");
     $this->text = $text;
     $this->href = "{$href}";
     if (isset($target)) {
         $this->target = $target;
     }
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct('tr');
 }
Exemplo n.º 7
0
 public function __construct($value)
 {
     parent::__construct('td');
     parent::appendChild($value);
 }
Exemplo n.º 8
0
 public function __construct()
 {
     parent::__construct('ul');
     $this->menu = new HTMLElement("ul");
 }