Exemplo n.º 1
0
 function init()
 {
     parent::init();
     if ($this->align != '') {
         $this->_init .= ' align="' . $this->align . '"';
     }
     if (isset($this->border) && $this->border !== '') {
         $this->_init .= ' border="' . $this->border . '"';
     }
     if ($this->bgcolor != '') {
         $this->_init .= ' bgcolor="' . $this->bgcolor . '"';
     }
     if (isset($this->cellpadding) && $this->cellpadding !== '') {
         $this->_init .= ' cellpadding="' . $this->cellpadding . '"';
     }
     if (isset($this->cellspacing) && $this->cellspacing !== '') {
         $this->_init .= ' cellspacing="' . $this->cellspacing . '"';
     }
     if ($this->frame != '') {
         $this->_init .= ' frame="' . $this->frame . '"';
     }
     if ($this->rules != '') {
         $this->_init .= ' rules="' . $this->rules . '"';
     }
     if ($this->summary != '') {
         $this->_init .= ' summary="' . $this->summary . '"';
     }
     if ($this->width != '') {
         $this->_init .= ' width="' . $this->width . '"';
     }
 }
Exemplo n.º 2
0
 /**
  * init attribs
  *
  * @acess protected
  */
 function init()
 {
     parent::init();
     if ($this->content == '') {
         $this->content = ' ';
     }
     if ($this->css_left != '') {
         $this->css_left = ' class="' . $this->css_left . '"';
     }
     if ($this->css_right != '') {
         $this->css_right = ' class="' . $this->css_right . '"';
     }
 }