Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.7

Request #3166 Change walk/_walk to use call_user_func_array
Submitted: 2005-01-11 16:23 UTC
From: reywob Assigned:
Status: Open Package: Tree
PHP Version: 4.3.10 OS: n/a
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 40 - 19 = ?

 
 [2005-01-11 16:23 UTC] reywob
Description: ------------ Congratulations on this package! One annoyance I've run across is that I end up duplicating the callback function for _walk a lot. This is because, for example, I want to print the tree out with different indentation, or extra text strings by each item. The base code is the same for each function, therefore it would be cleaner if I could pass extra data to the callback function - by using call_user_func_array and having an extra parameter to pass to the method walk (and hence to _walk)

Comments