<?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: Let Your Properties be Properties</title>
	<atom:link href="http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/</link>
	<description>PHP Programming, Web Development, PHP Advocacy and PHP Best Practices.</description>
	<lastBuildDate>Sun, 14 Mar 2010 11:08:56 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: MMF</title>
		<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-84325</link>
		<dc:creator>MMF</dc:creator>
		<pubDate>Sun, 23 Nov 2008 19:46:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-84325</guid>
		<description>Nice</description>
		<content:encoded><![CDATA[<p>Nice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pablo</title>
		<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-83516</link>
		<dc:creator>pablo</dc:creator>
		<pubDate>Sun, 16 Mar 2008 16:36:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-83516</guid>
		<description>Hi, you can have all the getXXX/setXXX methods without declaring them, just using the magic function __call and cutting the &quot;get&quot; or &quot;set&quot; part from the name of the method invoked and doing the $obj-&gt;XXX = value internally in __call. That&#039;s what I do in my projects.

cheers,
Pablo.</description>
		<content:encoded><![CDATA[<p>Hi, you can have all the getXXX/setXXX methods without declaring them, just using the magic function __call and cutting the &#8220;get&#8221; or &#8220;set&#8221; part from the name of the method invoked and doing the $obj-&gt;XXX = value internally in __call. That&#8217;s what I do in my projects.</p>
<p>cheers,<br />
Pablo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebas</title>
		<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-82602</link>
		<dc:creator>Sebas</dc:creator>
		<pubDate>Tue, 30 Oct 2007 11:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-82602</guid>
		<description>&lt;blockquote&gt;
I&#039;m strongly in favour of getFoo() / setFoo() because I think it&#039;s important to have a well-defined interface.
&lt;/blockquote&gt;

How would you program this to an interface.
Getters and setters are conventions, not interface implementations, or am I missing your point?</description>
		<content:encoded><![CDATA[<blockquote><p>
I&#8217;m strongly in favour of getFoo() / setFoo() because I think it&#8217;s important to have a well-defined interface.
</p></blockquote>
<p>How would you program this to an interface.<br />
Getters and setters are conventions, not interface implementations, or am I missing your point?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wolkje.net Weblog &#187; Blog Archive &#187; Accessing properties in PHP objects</title>
		<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-82577</link>
		<dc:creator>Wolkje.net Weblog &#187; Blog Archive &#187; Accessing properties in PHP objects</dc:creator>
		<pubDate>Mon, 29 Oct 2007 09:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-82577</guid>
		<description>[...] I stumbled upon a weblog post of Jeff Moore on the way properties of objects should be accessed in PHP. Accidently, I thought a little about this problem myself last week because I&#8217;m working on a [...]</description>
		<content:encoded><![CDATA[<p>[...] I stumbled upon a weblog post of Jeff Moore on the way properties of objects should be accessed in PHP. Accidently, I thought a little about this problem myself last week because I&#8217;m working on a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81670</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 24 May 2007 17:39:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81670</guid>
		<description>I understand the logic to this, but it&#039;s going to be more tedious as you get into larger applications with many classes vars and (of course) properties... For every var to be treated individually like that may be daunting.

If you&#039;re writing an application that&#039;s just going to sit and function (little to no maintenance), then I don&#039;t know how worthwhile it&#039;d be to use this method. Though for larger applications that undergo maintenance and upgrading/updating, I think that this is very acceptable, and might help avoid problems with making edits down the road.</description>
		<content:encoded><![CDATA[<p>I understand the logic to this, but it&#8217;s going to be more tedious as you get into larger applications with many classes vars and (of course) properties&#8230; For every var to be treated individually like that may be daunting.</p>
<p>If you&#8217;re writing an application that&#8217;s just going to sit and function (little to no maintenance), then I don&#8217;t know how worthwhile it&#8217;d be to use this method. Though for larger applications that undergo maintenance and upgrading/updating, I think that this is very acceptable, and might help avoid problems with making edits down the road.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: developercast.com &#187; Jeff Moore&#8217;s Blog: Let Your Properties be Properties</title>
		<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81487</link>
		<dc:creator>developercast.com &#187; Jeff Moore&#8217;s Blog: Let Your Properties be Properties</dc:creator>
		<pubDate>Thu, 10 May 2007 12:54:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81487</guid>
		<description>[...] a recent post to his blog, Jeff Moore advocates the philosophy that, in your OOP application development, you [...]</description>
		<content:encoded><![CDATA[<p>[...] a recent post to his blog, Jeff Moore advocates the philosophy that, in your OOP application development, you [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHPDeveloper.org</title>
		<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81486</link>
		<dc:creator>PHPDeveloper.org</dc:creator>
		<pubDate>Thu, 10 May 2007 12:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81486</guid>
		<description>&lt;strong&gt;Jeff Moore&#039;s Blog: Let Your Properties be Properties&lt;/strong&gt;

</description>
		<content:encoded><![CDATA[<p><strong>Jeff Moore&#8217;s Blog: Let Your Properties be Properties</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81482</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 09 May 2007 10:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81482</guid>
		<description>i am undecided if magic methods are a good thing. i am using them but they get quite messy if inheritance comes into play. mostly i end up writing protected setters to encapsulate them better and make sure that inheriting classes have a well defined interface to override a setter.

how do you handle inheritance with your magic methods?</description>
		<content:encoded><![CDATA[<p>i am undecided if magic methods are a good thing. i am using them but they get quite messy if inheritance comes into play. mostly i end up writing protected setters to encapsulate them better and make sure that inheriting classes have a well defined interface to override a setter.</p>
<p>how do you handle inheritance with your magic methods?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebs</title>
		<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81481</link>
		<dc:creator>Sebs</dc:creator>
		<pubDate>Wed, 09 May 2007 09:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81481</guid>
		<description>the get/set pattern is that what i hate.
its slow (function calls are slow) 
its obfuscating the code 
its so javaesk 
its ignoring the fact that there are the __get etc. methods

so another one saying NO to the get/set schema</description>
		<content:encoded><![CDATA[<p>the get/set pattern is that what i hate.<br />
its slow (function calls are slow)<br />
its obfuscating the code<br />
its so javaesk<br />
its ignoring the fact that there are the __get etc. methods</p>
<p>so another one saying NO to the get/set schema</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joppe</title>
		<link>http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81480</link>
		<dc:creator>Joppe</dc:creator>
		<pubDate>Wed, 09 May 2007 07:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.procata.com/blog/archives/2007/05/08/let-your-properties-be-properties/#comment-81480</guid>
		<description>I don&#039;t understand what you&#039;re doing.
If you make a class that&#039;s extensible then you&#039;re making a base class, or am i wrong? Do you mean that you use the possibility of PHP to set new (not existing) properties of a class?
What is setXXX? Are you setting a property xxx of a class, is xxx an existing property or is it a new property, is xxx an object?
How do you use it, $obj-&gt;setXXX( &#039;prop&#039; , &#039;foo&#039; ) ; ?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand what you&#8217;re doing.<br />
If you make a class that&#8217;s extensible then you&#8217;re making a base class, or am i wrong? Do you mean that you use the possibility of PHP to set new (not existing) properties of a class?<br />
What is setXXX? Are you setting a property xxx of a class, is xxx an existing property or is it a new property, is xxx an object?<br />
How do you use it, $obj-&gt;setXXX( &#8216;prop&#8217; , &#8216;foo&#8217; ) ; ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
