Re: Export GTKCtree to Array
| From: | Alan Knowles | Date: | Fri, 25 Jul 2003 13:57:24 +0000 |
| Subject: | Re: Export GTKCtree to Array | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3644@lists.php.net to get a copy of this message | ||
Holger Seidenberg wrote:
I want to use this function in my class Function NodeChildren($ctree, $node, $function='', $setparent=false) { static $children, $parent; if ($setparent) { $children=array(); $parent=$node; $ctree->Post_Recursive($node, 'NodeChildren'); $ctree->Post_Rercursive($node,array(&$this, 'NodeChildren'));or $ctree->Post_Rercursive($node,array('MyClass', 'NodeChildren')); Regards Alan
} else { if ($node->parent==$parent) { $children[]=$node; } } return $children; } $data=$this->nodechildren($this->arWidgets["relation_ctree"], $node, '',true); if i call this function i get an error: Warning: Unable to call ctree callback 'nodechildren' specified in xxx I tried $ctree->Post_Recursive($node, 'MyClass::NodeChildren'); without succsess can sombody help me ?? MFG Holger