<?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: ACL in Zend Framework</title>
	<atom:link href="http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/</link>
	<description>My musings on web development</description>
	<lastBuildDate>Mon, 30 Jan 2012 14:50:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: test</title>
		<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/comment-page-1/#comment-20585</link>
		<dc:creator>test</dc:creator>
		<pubDate>Mon, 30 Jan 2012 14:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=22#comment-20585</guid>
		<description>weweewe</description>
		<content:encoded><![CDATA[<p>weweewe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim</title>
		<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/comment-page-1/#comment-7684</link>
		<dc:creator>Kim</dc:creator>
		<pubDate>Sun, 13 Feb 2011 07:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=22#comment-7684</guid>
		<description>I see that Matthew Weier O&#039;Phinney does something similar, but his user object (which implements the ACL Role interface) is stored in the session.  Could be a nice tweak?</description>
		<content:encoded><![CDATA[<p>I see that Matthew Weier O&#8217;Phinney does something similar, but his user object (which implements the ACL Role interface) is stored in the session.  Could be a nice tweak?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avi</title>
		<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/comment-page-1/#comment-2231</link>
		<dc:creator>Avi</dc:creator>
		<pubDate>Wed, 14 Jul 2010 20:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=22#comment-2231</guid>
		<description>Yup, this bug has been fixed.</description>
		<content:encoded><![CDATA[<p>Yup, this bug has been fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: talentedmrjones</title>
		<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/comment-page-1/#comment-2229</link>
		<dc:creator>talentedmrjones</dc:creator>
		<pubDate>Wed, 14 Jul 2010 20:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=22#comment-2229</guid>
		<description>It seems that the bug you mentioned was fixed in ZF 1.9.1. So I assume that at this point (Im using 1.10.4) I dont need to subclass Zend_Acl or Zend_Acl_Role_Registry, and that implementing a Zend_Acl_Assert_Interface will suffice. Am I correct?</description>
		<content:encoded><![CDATA[<p>It seems that the bug you mentioned was fixed in ZF 1.9.1. So I assume that at this point (Im using 1.10.4) I dont need to subclass Zend_Acl or Zend_Acl_Role_Registry, and that implementing a Zend_Acl_Assert_Interface will suffice. Am I correct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avi</title>
		<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/comment-page-1/#comment-1316</link>
		<dc:creator>Avi</dc:creator>
		<pubDate>Tue, 27 Apr 2010 21:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=22#comment-1316</guid>
		<description>Sorry for taking such a long time to get back. A role is anything that implements the Zend_Role interface. Doesn&#039;t necessarily have anything to do with users per se.</description>
		<content:encoded><![CDATA[<p>Sorry for taking such a long time to get back. A role is anything that implements the Zend_Role interface. Doesn&#8217;t necessarily have anything to do with users per se.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darvid</title>
		<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/comment-page-1/#comment-628</link>
		<dc:creator>darvid</dc:creator>
		<pubDate>Wed, 09 Dec 2009 22:32:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=22#comment-628</guid>
		<description>Resource should instead allow you to optionally specify any object, and you name it when you add it.  So say you have an application object you want to protect you do this:

$object=new Application();

$acl-&gt;addResource(new ZendAclResource(&quot;name&quot;, $object));

Then the object is magically contained in the resource record so you can access it with the assert interface.</description>
		<content:encoded><![CDATA[<p>Resource should instead allow you to optionally specify any object, and you name it when you add it.  So say you have an application object you want to protect you do this:</p>
<p>$object=new Application();</p>
<p>$acl-&gt;addResource(new ZendAclResource(&#8220;name&#8221;, $object));</p>
<p>Then the object is magically contained in the resource record so you can access it with the assert interface.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronny stalker</title>
		<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/comment-page-1/#comment-543</link>
		<dc:creator>ronny stalker</dc:creator>
		<pubDate>Thu, 12 Nov 2009 02:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=22#comment-543</guid>
		<description>Its refreshing to see another person detecting that whole &#039;ACL protects controllers&#039; smell&#039;. I have always been scared of that technique. But, cos of my limited knowledge of OOP I did not feel confident enough to argue against that idea. Instead i just remained confused about ACL as a whole. So, thanks for the reassurance that i was not totally dumb.

I&#039;m still a bit confused, though. In your model, or ubiquitous language, what exactly is &#039;an author&#039;?

Is it &#039;a user&#039; or &#039;a role&#039;. It seems to be both.
As far as i can tell from your example. For every type of resource, (article/message/comment) you need to create a user/role object that deals with it specifically. 

I would be sooo grateful if you could add some more to this tutorial and give, say, two more examples of how it works. 

3 is the magic number.

Then, I feel I might be able to extrapolate these dots of wisdom into a curve of knowledge.</description>
		<content:encoded><![CDATA[<p>Its refreshing to see another person detecting that whole &#8216;ACL protects controllers&#8217; smell&#8217;. I have always been scared of that technique. But, cos of my limited knowledge of OOP I did not feel confident enough to argue against that idea. Instead i just remained confused about ACL as a whole. So, thanks for the reassurance that i was not totally dumb.</p>
<p>I&#8217;m still a bit confused, though. In your model, or ubiquitous language, what exactly is &#8216;an author&#8217;?</p>
<p>Is it &#8216;a user&#8217; or &#8216;a role&#8217;. It seems to be both.<br />
As far as i can tell from your example. For every type of resource, (article/message/comment) you need to create a user/role object that deals with it specifically. </p>
<p>I would be sooo grateful if you could add some more to this tutorial and give, say, two more examples of how it works. </p>
<p>3 is the magic number.</p>
<p>Then, I feel I might be able to extrapolate these dots of wisdom into a curve of knowledge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avi</title>
		<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/comment-page-1/#comment-109</link>
		<dc:creator>Avi</dc:creator>
		<pubDate>Fri, 31 Jul 2009 13:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=22#comment-109</guid>
		<description>The user object in this case implements the Zend_Acl_Role_Interface. If the role of your user object is one that inherits from two roles, Zend_Acl should be able to take care of that. I&#039;m not following you&#039;re problem.</description>
		<content:encoded><![CDATA[<p>The user object in this case implements the Zend_Acl_Role_Interface. If the role of your user object is one that inherits from two roles, Zend_Acl should be able to take care of that. I&#8217;m not following you&#8217;re problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonathan</title>
		<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/comment-page-1/#comment-103</link>
		<dc:creator>jonathan</dc:creator>
		<pubDate>Mon, 27 Jul 2009 17:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=22#comment-103</guid>
		<description>because when you pass in the user to check if it&#039;s allowed to perform the action, the acl checks up the chain, grabbing roles from the registry.  when it gets to author, it would be getting whatever was added to the acl when the acl was set up.  i&#039;m not sure how that would be associated with the user that was passed in?</description>
		<content:encoded><![CDATA[<p>because when you pass in the user to check if it&#8217;s allowed to perform the action, the acl checks up the chain, grabbing roles from the registry.  when it gets to author, it would be getting whatever was added to the acl when the acl was set up.  i&#8217;m not sure how that would be associated with the user that was passed in?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avi</title>
		<link>http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/comment-page-1/#comment-101</link>
		<dc:creator>Avi</dc:creator>
		<pubDate>Sun, 26 Jul 2009 19:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.aviblock.com/blog/?p=22#comment-101</guid>
		<description>Why would the user object not be in the assertion?</description>
		<content:encoded><![CDATA[<p>Why would the user object not be in the assertion?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

