/** * 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); }
public function __construct($id = NULL) { parent::__construct('dl'); if (!is_null($id)) { $this->setAttribute('id', $id); } }
public function __construct($name) { parent::__construct("form"); $this->name = "{$name}"; $this->id = "{$name}"; $this->enctype = "application/x-www-form-urlencoded"; }
/** * * @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; } }
/** * * @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; } }
public function __construct() { parent::__construct('tr'); }
public function __construct($value) { parent::__construct('td'); parent::appendChild($value); }
public function __construct() { parent::__construct('ul'); $this->menu = new HTMLElement("ul"); }