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

Request #4945 Move DB_NestedSet_Node into own file
Submitted: 2005-07-29 06:38 UTC Modified: 2005-10-25 18:40 UTC
From: tacker Assigned: datenpunk
Status: Closed Package: DB_NestedSet
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-07-29 06:38 UTC] tacker
Description: ------------ Hoi, I use an autoloader which depends on the relation between the class name and the file location. Embedding the class DB_NestedSet_Node in DB/NestedSet.php makes it impossible to related the class to it's file. So it would be great if you moved DB_NestedSet_Node into DB/NestedSet/Node.php . Thanks a lot.

Comments

 [2005-07-29 14:33 UTC] d dot khan at ventigo dot com
I don't understand the problem. The node object is only used internally. Could you please explain your issue a little bit more.
 [2005-07-29 15:36 UTC] tacker
I've written a wrapper class for NestedSet, where the functions may be called with DB_NestedSet_Node objects as parameters. Checking if the given parameter is a DB_NestedSet_Node object invokes __autoload. function test($node) { if (!is_a($node, 'DB_NestedSet_Node')) return false; } PHP5: function test(DB_NestedSet_Node $node) { }
 [2005-07-29 17:33 UTC] d dot khan at ventigo dot com
I don't understand the purpose but I don't need to understand everything. I will change this for the next release as it won't hurt anyone :-)
 [2005-10-25 18:40 UTC] datenpunk at php dot net
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.