Exemplo n.º 1
0
 public function __construct($text = NULL)
 {
     parent::__construct('legend');
     if (!is_null($text)) {
         parent::appendChild($text);
     }
 }
Exemplo n.º 2
0
 public function addItem($content)
 {
     $child = new HTMLElement('li');
     $child->appendChild($content);
     parent::appendChild($child);
     return $child;
 }
Exemplo n.º 3
0
 public function __construct($content = NULL)
 {
     parent::__construct('fieldset');
     if (!is_null($content)) {
         parent::appendChild($content);
     }
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 /**
  * 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);
 }
Exemplo n.º 6
0
 /**
  * Enter description here...
  *
  * @param string $text
  */
 public function __construct($content = "")
 {
     parent::__construct("span");
     parent::appendChild($content);
 }