Bug #14069 [Opn->Csd]: isChildOf() delegator-method missing in Tree/Memory.php

From: Date: Sun, 22 Mar 2009 17:01:33 +0000
Subject: Bug #14069 [Opn->Csd]: isChildOf() delegator-method missing in Tree/Memory.php
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-221@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=14069&edit=1 ID: 14069 Updated by: helgith@gmail.com Reported By: stephan at wentz dot it Summary: isChildOf() delegator-method missing in Tree/Memory.php -Status: Open +Status: Closed Type: Bug Package: Tree Operating System: Gentoo Linux Package Version: 0.3.3 PHP Version: 5.2.5 -Assigned To: +Assigned To: dufuz Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: dufuz Yeah - Long time ago and also the package is a monster :-) To some extent anyway. I'm closing this one down for now - just reopen it if you remember what the problem was. Thanks for reporting this in the first place! :D Previous Comments: ------------------------------------------------------------------------ [2009-03-16 12:03:36] temp Uhh... long time ago ;-) We're not using PEAR::Tree anymore, it's too much of a monster for our project. We wrote our own little Nested Set Class, which is completely enough. I really can't remember anymore what was the problem... ------------------------------------------------------------------------ [2009-03-12 17:25:45] dufuz Are you sure you mean memory because not one of the memory datasource implement it - Only the Dynamic datasources. So if I added this people would get a Tree_error because it is not implemented. Am I misunderstanding anything ? ------------------------------------------------------------------------ [2008-06-04 11:03:43] temp Description: ------------ isChildOf() delegator-method missing in Tree/Memory.php. Calling isChildOf() results in a Tree_Error, because it isn't delegated to the Tree_Memory_* dataSource. fix (in Tree/Memory.php): /** * returns if $childId is a child of $id * * @abstract * @version 2002/04/29 * @access public * @author Wolfram Kriesing <wolfram@kriesing.de> * @param int id of the element * @param int id of the element to check if it is a child * @return boolean true if it is a child */ function isChildOf($id, $childId) { return $this->dataSourceClass->isChildOf($id, $childId); } Test script: --------------- - Expected result: ---------------- true|false Actual result: -------------- Tree_Error ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=14069&edit=1

« previous php.pear.bugs (#221) next »