function __construct($name = '') { dom_node::__construct($name); $tmpdiv = new dom_div(); $this->inp = new dom_textinput(); $tmpdiv->append_child($this->inp); $this->sp_inc = new dom_span(); $txt = new dom_statictext(); $txt->text = '[+]'; $this->sp_inc->append_child($txt); $tmpdiv->append_child($this->sp_inc); $this->sp_dec = new dom_span(); $txt = new dom_statictext(); $txt->text = '[-]'; $this->sp_dec->append_child($txt); $tmpdiv->append_child($this->sp_dec); $this->css_style['width'] = '250px'; $this->append_child($tmpdiv); $this->dis = new dom_div(); $this->append_child($this->dis); $this->dis->css_style['width'] = '50px'; }
function __construct($text = '') { parent::__construct(); if ($text != '') { $this->text = $text; } }