<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Tree</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/19185" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19120" />
      <rdf:li rdf:resource="http://pear.php.net/bug/11982" />
      <rdf:li rdf:resource="http://pear.php.net/bug/3166" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/19185">
      <title>Tree: Bug 19185 [Assigned] Current releases were coming from branches, not trunk.</title>
      <link>http://pear.php.net/bugs/19185</link>
      <content:encoded><![CDATA[<pre>Tree Bug
Reported by danielc
2012-01-04T07:35:05+00:00
PHP: Irrelevant OS:  Package Version: SVN

Description:
------------
The current releases for this package were coming from a branch, not trunk.  The move to Github did not bring the branches with it.  Please add the branches to the github repo or move the package back to svn.php.net.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Tree Bug
Reported by danielc
2012-01-04T07:35:05+00:00
PHP: Irrelevant OS:  Package Version: SVN

Description:
------------
The current releases for this package were coming from a branch, not trunk.  The move to Github did not bring the branches with it.  Please add the branches to the github repo or move the package back to svn.php.net.</pre>]]></description>
      <dc:date>2012-01-05T07:36:23+00:00</dc:date>
      <dc:creator>danielc &amp;#x61;&amp;#116; analysisandsolutions &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Tree Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/19120">
      <title>Tree: Bug 19120 [Open] setOption('columnNameMaps') does not work</title>
      <link>http://pear.php.net/bugs/19120</link>
      <content:encoded><![CDATA[<pre>Tree Bug
Reported by danielc
2011-12-10T06:27:09+00:00
PHP: 5_3 SVN-2011-12-10 OS:  Package Version: 0.3.5

Description:
------------
In tests/getElementTest.php, there is a test for $tree-&gt;setOption('columnNameMaps', array('myComment' =&gt; 'comment'));
It fails, so I marked it incomplete for now.

The setOption() functionality needs to be fixed and the markTestIncomplete() call removed.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Tree Bug
Reported by danielc
2011-12-10T06:27:09+00:00
PHP: 5_3 SVN-2011-12-10 OS:  Package Version: 0.3.5

Description:
------------
In tests/getElementTest.php, there is a test for $tree-&gt;setOption('columnNameMaps', array('myComment' =&gt; 'comment'));
It fails, so I marked it incomplete for now.

The setOption() functionality needs to be fixed and the markTestIncomplete() call removed.</pre>]]></description>
      <dc:date>2011-12-10T06:27:09+00:00</dc:date>
      <dc:creator>danielc &amp;#x61;&amp;#116; analysisandsolutions &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Tree Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/11982">
      <title>Tree: Feature/Change Request 11982 [Open] Root node not present in SQL Query</title>
      <link>http://pear.php.net/bugs/11982</link>
      <content:encoded><![CDATA[<pre>Tree Feature/Change Request
Reported by therebel22
2007-09-05T10:58:17+00:00
PHP: 5.2.3 OS: Linux Debian Etch Package Version: 0.3.2

Description:
------------
Hi,

juste an improvment if you want in MemoryDbSimple :

I hav done a query with some rows with fatherId = -1. But in the dataset returned, there wasn't any row with id = 1.

So, my idea is to create a virtual row with missing id :

Here line 268 in Memory.php :

        /// Searching for missing parentId if present
	unset($tmpAryId);
	unset($tmpAryParentId);
        foreach($res as $tmp_id =&gt; $tmp_val)
        {
         $tmpAryId[] = $tmp_val['id'];
         $tmpAryParentId[] = $tmp_val['parentId'];
        }
        
        foreach($tmpAryParentId as $tmp_val)
        {
        	if(!in_array($tmp_val,$tmpAryId)) $res[] = array ( 'id' =&gt; $tmp_val , 'parentId' =&gt; 0 ,'name' =&gt; 'root');
        }


Bye</pre>]]></content:encoded>
      <description><![CDATA[<pre>Tree Feature/Change Request
Reported by therebel22
2007-09-05T10:58:17+00:00
PHP: 5.2.3 OS: Linux Debian Etch Package Version: 0.3.2

Description:
------------
Hi,

juste an improvment if you want in MemoryDbSimple :

I hav done a query with some rows with fatherId = -1. But in the dataset returned, there wasn't any row with id = 1.

So, my idea is to create a virtual row with missing id :

Here line 268 in Memory.php :

        /// Searching for missing parentId if present
	unset($tmpAryId);
	unset($tmpAryParentId);
        foreach($res as $tmp_id =&gt; $tmp_val)
        {
         $tmpAryId[] = $tmp_val['id'];
         $tmpAryParentId[] = $tmp_val['parentId'];
        }
        
        foreach($tmpAryParentId as $tmp_val)
        {
        	if(!in_array($tmp_val,$tmpAryId)) $res[] = array ( 'id' =&gt; $tmp_val , 'parentId' =&gt; 0 ,'name' =&gt; 'root');
        }


Bye</pre>]]></description>
      <dc:date>2007-09-05T10:58:17+00:00</dc:date>
      <dc:creator>therebel22 &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Tree Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/3166">
      <title>Tree: Feature/Change Request 3166 [Open] Change walk/_walk to use call_user_func_array</title>
      <link>http://pear.php.net/bugs/3166</link>
      <content:encoded><![CDATA[<pre>Tree Feature/Change Request
Reported by reywob
2005-01-11T16:23:23+00:00
PHP: 4.3.10 OS: n/a Package Version: 

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)</pre>]]></content:encoded>
      <description><![CDATA[<pre>Tree Feature/Change Request
Reported by reywob
2005-01-11T16:23:23+00:00
PHP: 4.3.10 OS: n/a Package Version: 

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)</pre>]]></description>
      <dc:date>2005-01-11T16:23:23+00:00</dc:date>
      <dc:creator>peter &amp;#x61;&amp;#116; mapledesign &amp;#x64;&amp;#111;&amp;#x74; co &amp;#x64;&amp;#111;&amp;#x74; uk</dc:creator>
      <dc:subject>Tree Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
