function DirNode($text = false, $link = false, $icon = false, $path, $events = array()) { $this->path = $path; $options = array(); if ($text) { $options['text'] = $text; } if ($link) { $options['link'] = $link; } if ($icon) { $options['icon'] = $icon; } HTML_TreeNode::HTML_TreeNode($options, $events); }
function HTML_TreeNodeXL() { HTML_TreeNode::HTML_TreeNode(); $numargs = func_num_args(); $numargs = min(6, $numargs); $arglist = array('text', 'link', 'icon', 'expanded', 'isDynamic', 'cssClass'); for ($i = 0; $i < $numargs; $i++) { $a =& func_get_arg($i); if (is_array($a)) { // Array is always the last argument. Ignore anything else. $this->setProperties($a); break; } $this->{$arglist}[$i] = $a; } $this->_checkProperties(); }