/** * @param string $text * @param string $for * */ public function __construct($text, $for = NULL) { parent::__construct($text); if (NULL !== $for) { $this->attr('for', $for); } }
/** * @param HAbstract $hElm * */ public function add($component) { ElementException::throwsExceptionIfParamIsNull($component instanceof HAbstract, 'apenas objetos HAbstract são aceitos'); return parent::add($component); }
/** * @param mixed $value * @param string $name * */ public function __construct($value = NULL, $name = NULL) { parent::__construct($name ?: 'button' . self::$_sequence++, 'button'); $this->setContent($value); }
/** * @param string $title * @param string $text * */ public function __construct($title, $text) { parent::__construct($text); $this->attr('title', $title); }
/** * redefine a ordem de renderizacao dos elementos de tabela * * @override * @return string * */ public function render() { $this->clear(); if (NULL !== $this->_caption) { $this->add($this->_caption); } if (NULL !== $this->_thead) { $this->add($this->_thead); } if (NULL !== $this->_tfoot) { $this->add($this->_tfoot); } if (NULL !== $this->_tbody) { $this->add($this->_tbody); } return parent::render(); }