Web hosting and cheap domain register services
  

 Home

Prev GtkCTree::post_recursive_to_depth Next

GtkCTree::post_recursive_to_depth

void post_recursive_to_depth(GtkCTreeNode node, int depth, String callback, ??? own_parameter]);

Recursively apply a function to nodes up to a certain depth. The function is called for each node after it has been called for that node's children.

The depth parameter determines, how many levels below the given node the function shall be applied. Note that a depth of "0" does nothing, the depth of "1" will apply the function just to the given node. Only "2" will apply the given function to the first level below the node. If depth is negative, this function just calls post_recursive.

The callback parameter can be a function name as a string; this function will be called. If you want to use the function of an object, just use
array( &$obj, "function")

The fourth parameter is optional, it will be passed to the called function. You can have as many own parameters as you like.

The calling function needs to implement at least 3 parameters: The first is the tree object, the second the specific node and the third contains the callback itself (String or array).


Prev Home Next
GtkCTree::post_recursive Up GtkCTree::pre_recursive

 

  

Network sites:

Active-Domain.com: cheap domain register and domain name registration

Cheap domains registration and domain transfer with free domain hosting 

 
 
Quotes:
If you have built castles in the air, your work need not be lost; that is where they should be. Now put the foundations under them.  
 
 

Disclaimer: This documentation is provided only for the benefits of our webhosting customers.
For authoritative source of the documentation, please refer to http://gtk.php.net/docs.php