<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Lazy loading of object variables in php using __get()</title>
	<atom:link href="http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/feed/" rel="self" type="application/rss+xml" />
	<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/</link>
	<description>Web / internet development, mostly using php / mysql</description>
	<lastBuildDate>Wed, 28 Oct 2009 04:37:28 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Newbie</title>
		<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/#comment-347</link>
		<dc:creator>Newbie</dc:creator>
		<pubDate>Thu, 06 Aug 2009 08:47:24 +0000</pubDate>
		<guid isPermaLink="false">http://cormacscode.wordpress.com/?p=38#comment-347</guid>
		<description>Great article, and informative comments to go with it.</description>
		<content:encoded><![CDATA[<p>Great article, and informative comments to go with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JT</title>
		<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/#comment-82</link>
		<dc:creator>JT</dc:creator>
		<pubDate>Thu, 25 Dec 2008 20:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://cormacscode.wordpress.com/?p=38#comment-82</guid>
		<description>&quot;Whoa! I didn’t realise anyone read this blog&quot;

You&#039;re 10th hit on google for &quot;php lazy load&quot;</description>
		<content:encoded><![CDATA[<p>&#8220;Whoa! I didn’t realise anyone read this blog&#8221;</p>
<p>You&#8217;re 10th hit on google for &#8220;php lazy load&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cormacscode</title>
		<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/#comment-46</link>
		<dc:creator>cormacscode</dc:creator>
		<pubDate>Mon, 11 Aug 2008 13:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://cormacscode.wordpress.com/?p=38#comment-46</guid>
		<description>Whoa! I didn&#039;t realise anyone read this blog

Anyway, ok, I shouldn&#039;t have used eval(). My bad.</description>
		<content:encoded><![CDATA[<p>Whoa! I didn&#8217;t realise anyone read this blog</p>
<p>Anyway, ok, I shouldn&#8217;t have used eval(). My bad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Mattocks</title>
		<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/#comment-45</link>
		<dc:creator>Scott Mattocks</dc:creator>
		<pubDate>Mon, 11 Aug 2008 12:28:16 +0000</pubDate>
		<guid isPermaLink="false">http://cormacscode.wordpress.com/?p=38#comment-45</guid>
		<description>Don&#039;t use eval. You are just asking for trouble. Instead you should first check that the method exists and then call it using call_user_func().

if (is_callable(array($this, &#039;_load&#039; . $var)))
{
    call_user_func(array($this, &#039;_load&#039; . $var));
}
return $this-&gt;$var;</description>
		<content:encoded><![CDATA[<p>Don&#8217;t use eval. You are just asking for trouble. Instead you should first check that the method exists and then call it using call_user_func().</p>
<p>if (is_callable(array($this, &#8216;_load&#8217; . $var)))<br />
{<br />
    call_user_func(array($this, &#8216;_load&#8217; . $var));<br />
}<br />
return $this-&gt;$var;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trii</title>
		<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/#comment-44</link>
		<dc:creator>Trii</dc:creator>
		<pubDate>Sun, 10 Aug 2008 17:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://cormacscode.wordpress.com/?p=38#comment-44</guid>
		<description>Yeah your blog killed my opening ?php,


$method = &#039;_load&#039; . $var;
$this-&gt;$method();</description>
		<content:encoded><![CDATA[<p>Yeah your blog killed my opening ?php,</p>
<p>$method = &#8216;_load&#8217; . $var;<br />
$this-&gt;$method();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trii</title>
		<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/#comment-43</link>
		<dc:creator>Trii</dc:creator>
		<pubDate>Sun, 10 Aug 2008 17:40:15 +0000</pubDate>
		<guid isPermaLink="false">http://cormacscode.wordpress.com/?p=38#comment-43</guid>
		<description>You know you can remove the eval() call and replace it with:

$method();
?&gt;</description>
		<content:encoded><![CDATA[<p>You know you can remove the eval() call and replace it with:</p>
<p>$method();<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iongion</title>
		<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/#comment-38</link>
		<dc:creator>iongion</dc:creator>
		<pubDate>Sat, 09 Aug 2008 19:04:43 +0000</pubDate>
		<guid isPermaLink="false">http://cormacscode.wordpress.com/?p=38#comment-38</guid>
		<description>Why don&#039; you just use

public function __get($var)
{
    $loader = &#039;_load&#039;.$var;
    $this-&gt;$loader();
    return $this-&gt;$var;
}

it should be much faster than using eval and much portable without the placeholders {}</description>
		<content:encoded><![CDATA[<p>Why don&#8217; you just use</p>
<p>public function __get($var)<br />
{<br />
    $loader = &#8216;_load&#8217;.$var;<br />
    $this-&gt;$loader();<br />
    return $this-&gt;$var;<br />
}</p>
<p>it should be much faster than using eval and much portable without the placeholders {}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Turland</title>
		<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/#comment-36</link>
		<dc:creator>Matthew Turland</dc:creator>
		<pubDate>Sat, 09 Aug 2008 16:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://cormacscode.wordpress.com/?p=38#comment-36</guid>
		<description>eval() is evil. This is a better way:
$this-&gt;{&#039;_load&#039; . $var}();
return $this-&gt;$var;</description>
		<content:encoded><![CDATA[<p>eval() is evil. This is a better way:<br />
$this-&gt;{&#8216;_load&#8217; . $var}();<br />
return $this-&gt;$var;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Why eval() ? &#171; Sticky Tape</title>
		<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/#comment-35</link>
		<dc:creator>Why eval() ? &#171; Sticky Tape</dc:creator>
		<pubDate>Sat, 09 Aug 2008 08:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://cormacscode.wordpress.com/?p=38#comment-35</guid>
		<description>[...] In response to Lazy loading of object variables in php using __get() [...]</description>
		<content:encoded><![CDATA[<p>[...] In response to Lazy loading of object variables in php using __get() [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cormac&#8217;s Blog: Lazy loading of object variables in php using __get() &#124; Development Blog With Code Updates : Developercast.com</title>
		<link>http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/#comment-34</link>
		<dc:creator>Cormac&#8217;s Blog: Lazy loading of object variables in php using __get() &#124; Development Blog With Code Updates : Developercast.com</dc:creator>
		<pubDate>Fri, 08 Aug 2008 21:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://cormacscode.wordpress.com/?p=38#comment-34</guid>
		<description>[...] Cormac posted this look at a method for lazy loading on variables in an object with the magic __get method.   I used the magic [...]</description>
		<content:encoded><![CDATA[<p>[...] Cormac posted this look at a method for lazy loading on variables in an object with the magic __get method.   I used the magic [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
