Export GTKCtree to Array
| From: | Holger Seidenberg | Date: | Thu, 24 Jul 2003 12:31:56 +0000 |
| Subject: | Export GTKCtree to Array | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3641@lists.php.net to get a copy of this message | ||
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');
}
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