public function __construct($text = NULL) { parent::__construct('legend'); if (!is_null($text)) { parent::appendChild($text); } }
public function addItem($content) { $child = new HTMLElement('li'); $child->appendChild($content); parent::appendChild($child); return $child; }
public function __construct($content = NULL) { parent::__construct('fieldset'); if (!is_null($content)) { parent::appendChild($content); } }
private function topRightMenu() { $div = new HTMLDiv("float_right"); $div->class = "float_right"; $ul = new HTMLElement("ul"); if (is_array($this->topRightMenu)) { foreach ($this->topRightMenu as $item) { $li = new HTMLElement("li"); $li->appendChild($item); $ul->appendChild($li); } } $div->appendChild($ul); $this->topRightMenu = $div; return $this->topRightMenu; }
/** * Gera uma caixa de sele��o com os valores representando os segundos * @param string $name * @param string $cmp * @param boolean $autoDraw * @return mixed */ public function getSelectSeconds($name = "seconds", $cmp = NULL, $autoDraw = FALSE) { if (!$cmp) { $cmp = date("s"); } $select = new HTMLElement("select"); $select->name = $name; $select->id = $name; $select->appendChild($this->getMinutesOptions($cmp)); return $this->autoDraw($select, $autoDraw); }
/** * Enter description here... * * @param string $text */ public function __construct($content = "") { parent::__construct("span"); parent::appendChild($content); }