コード例 #1
0
ファイル: Label.php プロジェクト: sgdoc/sgdoce-codigo
 /**
  * @param string $text
  * @param string $for
  * */
 public function __construct($text, $for = NULL)
 {
     parent::__construct($text);
     if (NULL !== $for) {
         $this->attr('for', $for);
     }
 }
コード例 #2
0
ファイル: HGroup.php プロジェクト: sgdoc/sgdoce-codigo
 /**
  * @param HAbstract $hElm
  * */
 public function add($component)
 {
     ElementException::throwsExceptionIfParamIsNull($component instanceof HAbstract, 'apenas objetos HAbstract são aceitos');
     return parent::add($component);
 }
コード例 #3
0
ファイル: Button.php プロジェクト: sgdoc/sgdoce-codigo
 /**
  * @param mixed $value
  * @param string $name
  * */
 public function __construct($value = NULL, $name = NULL)
 {
     parent::__construct($name ?: 'button' . self::$_sequence++, 'button');
     $this->setContent($value);
 }
コード例 #4
0
ファイル: Abbr.php プロジェクト: sgdoc/sgdoce-codigo
 /**
  * @param string $title
  * @param string $text
  * */
 public function __construct($title, $text)
 {
     parent::__construct($text);
     $this->attr('title', $title);
 }
コード例 #5
0
ファイル: Table.php プロジェクト: sgdoc/sgdoce-codigo
 /**
  * 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();
 }