<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: extending Zend_Db_Table to create NestedSet models</title>
	<atom:link href="http://dev.iordanov.net/archives/8/feed" rel="self" type="application/rss+xml" />
	<link>http://dev.iordanov.net/archives/8</link>
	<description></description>
	<lastBuildDate>Sat, 13 Feb 2010 07:27:50 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris</title>
		<link>http://dev.iordanov.net/archives/8/comment-page-1#comment-2443</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 13 Feb 2010 07:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://dev.iordanov.net/?p=8#comment-2443</guid>
		<description>Another possibility is to integrate doctrine (e.g. http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/ -there are more article about this topic) and use doctrine-nested-sets: http://www.doctrine-project.org/documentation/manual/1_2/en/hierarchical-data</description>
		<content:encoded><![CDATA[<p>Another possibility is to integrate doctrine (e.g. <a href="http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/" rel="nofollow">http://www.zendcasts.com/deep-integration-between-zend-and-doctrine-1-2/2010/01/</a> -there are more article about this topic) and use doctrine-nested-sets: <a href="http://www.doctrine-project.org/documentation/manual/1_2/en/hierarchical-data" rel="nofollow">http://www.doctrine-project.org/documentation/manual/1_2/en/hierarchical-data</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nested Set - php.de</title>
		<link>http://dev.iordanov.net/archives/8/comment-page-1#comment-1085</link>
		<dc:creator>Nested Set - php.de</dc:creator>
		<pubDate>Tue, 07 Jul 2009 14:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://dev.iordanov.net/?p=8#comment-1085</guid>
		<description>[...] ma Google abgegrast, jedoch dort nur Beispiele gefunden wo bereits Daten vorhanden sind. Linkliste: dev.iordanov.net http://www.tutorials.de/ http://www.traum-projekt.com/  http://reeg.junetz.de/ [...]</description>
		<content:encoded><![CDATA[<p>[...] ma Google abgegrast, jedoch dort nur Beispiele gefunden wo bereits Daten vorhanden sind. Linkliste: dev.iordanov.net <a href="http://www.tutorials.de/" rel="nofollow">http://www.tutorials.de/</a> <a href="http://www.traum-projekt.com/" rel="nofollow">http://www.traum-projekt.com/</a>  <a href="http://reeg.junetz.de/" rel="nofollow">http://reeg.junetz.de/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivan</title>
		<link>http://dev.iordanov.net/archives/8/comment-page-1#comment-874</link>
		<dc:creator>ivan</dc:creator>
		<pubDate>Sun, 31 May 2009 17:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://dev.iordanov.net/?p=8#comment-874</guid>
		<description>@Sakruta, this variable is optional .. if table has other fields .. eg. sort_order this code can&#039;t handle it :) that&#039;s why i use this variable</description>
		<content:encoded><![CDATA[<p>@Sakruta, this variable is optional .. if table has other fields .. eg. sort_order this code can&#8217;t handle it <img src='http://dev.iordanov.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  that&#8217;s why i use this variable</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sokruta</title>
		<link>http://dev.iordanov.net/archives/8/comment-page-1#comment-869</link>
		<dc:creator>Sokruta</dc:creator>
		<pubDate>Sat, 30 May 2009 17:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://dev.iordanov.net/?p=8#comment-869</guid>
		<description>Why do you create class variable $_insertData. It doesnt make any sense. Insert operations can be sucessfully accomplished without using it.</description>
		<content:encoded><![CDATA[<p>Why do you create class variable $_insertData. It doesnt make any sense. Insert operations can be sucessfully accomplished without using it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dantan</title>
		<link>http://dev.iordanov.net/archives/8/comment-page-1#comment-479</link>
		<dc:creator>dantan</dc:creator>
		<pubDate>Wed, 11 Mar 2009 10:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://dev.iordanov.net/?p=8#comment-479</guid>
		<description>Are you still working on this?

Maybe someone has an idea on move functions?</description>
		<content:encoded><![CDATA[<p>Are you still working on this?</p>
<p>Maybe someone has an idea on move functions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CrOOgie</title>
		<link>http://dev.iordanov.net/archives/8/comment-page-1#comment-247</link>
		<dc:creator>CrOOgie</dc:creator>
		<pubDate>Mon, 19 Jan 2009 17:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://dev.iordanov.net/?p=8#comment-247</guid>
		<description>Nice class... gooood idea to work with :)

I have done method to retrieve a subtree for given id:
[code]
	public function getSubTree($id)
	{
		
		$ret = $this-&gt;_db-&gt;query(&quot;
			SELECT node.{$this-&gt;_primary}, node.{$this-&gt;_toString},
        (
           COUNT(parent.{$this-&gt;_toString}) - (sub_tree.depth + 1)
        ) AS depth
    	FROM
        `{$this-&gt;_name}` AS node,
        `{$this-&gt;_name}` AS parent,
        `{$this-&gt;_name}` AS sub_parent,
        (
        	SELECT node.{$this-&gt;_primary}, (COUNT(parent.{$this-&gt;_toString}) - 1) AS depth
        	FROM `{$this-&gt;_name}` AS node, `{$this-&gt;_name}` AS parent
        	WHERE node.{$this-&gt;_left} BETWEEN parent.{$this-&gt;_left} AND parent.{$this-&gt;_right}
        	  AND node.{$this-&gt;_primary} = $id
        	GROUP BY node.{$this-&gt;_primary}
        	ORDER BY node.{$this-&gt;_left}
        ) AS sub_tree
    	WHERE node.{$this-&gt;_left} BETWEEN parent.{$this-&gt;_left} AND parent.{$this-&gt;_right}
      	AND node.{$this-&gt;_left} BETWEEN sub_parent.{$this-&gt;_left} AND sub_parent.{$this-&gt;_right}
      	AND sub_parent.{$this-&gt;_primary} = sub_tree.{$this-&gt;_primary}
    	GROUP BY node.{$this-&gt;_primary}
    	ORDER BY node.{$this-&gt;_left}
		&quot;);
		return $ret-&gt;fetchAll();
	}
[/code]

Just base on code found in article at MYSql.com</description>
		<content:encoded><![CDATA[<p>Nice class&#8230; gooood idea to work with <img src='http://dev.iordanov.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I have done method to retrieve a subtree for given id:<br />
[code]<br />
	public function getSubTree($id)<br />
	{</p>
<p>		$ret = $this-&gt;_db-&gt;query("<br />
			SELECT node.{$this-&gt;_primary}, node.{$this-&gt;_toString},<br />
        (<br />
           COUNT(parent.{$this-&gt;_toString}) - (sub_tree.depth + 1)<br />
        ) AS depth<br />
    	FROM<br />
        `{$this-&gt;_name}` AS node,<br />
        `{$this-&gt;_name}` AS parent,<br />
        `{$this-&gt;_name}` AS sub_parent,<br />
        (<br />
        	SELECT node.{$this-&gt;_primary}, (COUNT(parent.{$this-&gt;_toString}) - 1) AS depth<br />
        	FROM `{$this-&gt;_name}` AS node, `{$this-&gt;_name}` AS parent<br />
        	WHERE node.{$this-&gt;_left} BETWEEN parent.{$this-&gt;_left} AND parent.{$this-&gt;_right}<br />
        	  AND node.{$this-&gt;_primary} = $id<br />
        	GROUP BY node.{$this-&gt;_primary}<br />
        	ORDER BY node.{$this-&gt;_left}<br />
        ) AS sub_tree<br />
    	WHERE node.{$this-&gt;_left} BETWEEN parent.{$this-&gt;_left} AND parent.{$this-&gt;_right}<br />
      	AND node.{$this-&gt;_left} BETWEEN sub_parent.{$this-&gt;_left} AND sub_parent.{$this-&gt;_right}<br />
      	AND sub_parent.{$this-&gt;_primary} = sub_tree.{$this-&gt;_primary}<br />
    	GROUP BY node.{$this-&gt;_primary}<br />
    	ORDER BY node.{$this-&gt;_left}<br />
		");<br />
		return $ret-&gt;fetchAll();<br />
	}<br />
[/code]</p>
<p>Just base on code found in article at MYSql.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dantan</title>
		<link>http://dev.iordanov.net/archives/8/comment-page-1#comment-217</link>
		<dc:creator>dantan</dc:creator>
		<pubDate>Mon, 05 Jan 2009 14:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://dev.iordanov.net/?p=8#comment-217</guid>
		<description>Nice class. Are you still developing on this one?

I am missing move functions.</description>
		<content:encoded><![CDATA[<p>Nice class. Are you still developing on this one?</p>
<p>I am missing move functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HerrSerker</title>
		<link>http://dev.iordanov.net/archives/8/comment-page-1#comment-163</link>
		<dc:creator>HerrSerker</dc:creator>
		<pubDate>Thu, 04 Dec 2008 14:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://dev.iordanov.net/?p=8#comment-163</guid>
		<description>Good, ... I mean excellent job! But I think the level is missing, i.e. the depth of the leaves in the nested set tree</description>
		<content:encoded><![CDATA[<p>Good, &#8230; I mean excellent job! But I think the level is missing, i.e. the depth of the leaves in the nested set tree</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://dev.iordanov.net/archives/8/comment-page-1#comment-128</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Tue, 11 Nov 2008 16:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://dev.iordanov.net/?p=8#comment-128</guid>
		<description>Hi Ivan,
Hi S?bastien, 
Hi Stefan,
What about the fully funcional nested set class for ZF...
Where can it be found?
Kind Regards and thanks in advance.
Thomas</description>
		<content:encoded><![CDATA[<p>Hi Ivan,<br />
Hi S?bastien,<br />
Hi Stefan,<br />
What about the fully funcional nested set class for ZF&#8230;<br />
Where can it be found?<br />
Kind Regards and thanks in advance.<br />
Thomas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Schmalhaus</title>
		<link>http://dev.iordanov.net/archives/8/comment-page-1#comment-49</link>
		<dc:creator>Stefan Schmalhaus</dc:creator>
		<pubDate>Wed, 03 Sep 2008 16:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://dev.iordanov.net/?p=8#comment-49</guid>
		<description>@S?bastien: You mentioned a fully functional nested set class for ZF. I couldn&#039;t find it on zym-project.com. Can you provide another URL? Thanks in advance.</description>
		<content:encoded><![CDATA[<p>@S?bastien: You mentioned a fully functional nested set class for ZF. I couldn&#8217;t find it on zym-project.com. Can you provide another URL? Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
