<?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: PHP Object Attributes</title>
	<atom:link href="http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 02:42:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nix</title>
		<link>http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/comment-page-1/#comment-8589</link>
		<dc:creator>Nix</dc:creator>
		<pubDate>Wed, 22 Jul 2009 09:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/#comment-8589</guid>
		<description>Perhaps you wanted to do it like in Rails, but I don&#039;t think registering accessors by attr_accessor is really necessary. I guess that the existence of a callable method getAuthor() is a reason good enough to call it in case the $author property doesn&#039;t exist. If it fails, try with $_author.
You should only keep in mind that all properties without get/set methods and prefixed with &quot;_&quot; would become public.</description>
		<content:encoded><![CDATA[<p>Perhaps you wanted to do it like in Rails, but I don&#8217;t think registering accessors by attr_accessor is really necessary. I guess that the existence of a callable method getAuthor() is a reason good enough to call it in case the $author property doesn&#8217;t exist. If it fails, try with $_author.<br />
You should only keep in mind that all properties without get/set methods and prefixed with &#8220;_&#8221; would become public.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maledictus</title>
		<link>http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/comment-page-1/#comment-85</link>
		<dc:creator>Maledictus</dc:creator>
		<pubDate>Tue, 19 Feb 2008 16:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/#comment-85</guid>
		<description>You should use attr_reader instead of attr_accessor if you want to write your own setter.</description>
		<content:encoded><![CDATA[<p>You should use attr_reader instead of attr_accessor if you want to write your own setter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/comment-page-1/#comment-7</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 04 Jan 2008 17:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/#comment-7</guid>
		<description>That&#039;s been fixed, thanks.</description>
		<content:encoded><![CDATA[<p>That&#8217;s been fixed, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michel de Lange</title>
		<link>http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/comment-page-1/#comment-6</link>
		<dc:creator>Michel de Lange</dc:creator>
		<pubDate>Fri, 04 Jan 2008 12:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/#comment-6</guid>
		<description>Code note, demo/demo.php: you might want to change require_once dirname(__FILE__).&#039;/lib/AttrObject.php&#039; to require_once dirname(__FILE__).&#039;/../lib/AttrObject.php&#039;.</description>
		<content:encoded><![CDATA[<p>Code note, demo/demo.php: you might want to change require_once dirname(__FILE__).&#8217;/lib/AttrObject.php&#8217; to require_once dirname(__FILE__).&#8217;/../lib/AttrObject.php&#8217;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
