<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 09:06:56 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Lazy and Eager Loading in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/13209</guid>
      <link>http://www.phpdeveloper.org/news/13209</link>
      <description><![CDATA[<p>
On DevShed today there's the start of a new series looking at design patterns in PHP applications. In <a href="http://www.devshed.com/c/a/PHP/Lazy-and-Eager-Loading-in-PHP-5">this first part</a> of the series, they look at lazy and eager loading.
</p>
<blockquote>
In the case of PHP 5, which is better suited for developing web-based programs, there are two complementary design patterns that can be of great help in  building faster and more reliable applications. Of course, as this article's title suggests, I'm talking about the lazy and eager loading patterns. Despite their rather funny names, they are pretty easy to implement in PHP 5-controlled environments.
</blockquote>
<p>
To illustrate, they've <a href="http://www.devshed.com/c/a/PHP/Lazy-and-Eager-Loading-in-PHP-5/1/">created a sample class</a> that uses a few class properties and a __toString method to return the values. 
</p>]]></description>
      <pubDate>Fri, 11 Sep 2009 12:49:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Esser's Blog: Suhosin Updates - Improved Randomness & LAZY Symbol Loading]]></title>
      <guid>http://www.phpdeveloper.org/news/10892</guid>
      <link>http://www.phpdeveloper.org/news/10892</link>
      <description><![CDATA[<p>
<i>Stefan Esser</i> has released a new update (really two, but one is the latest) to his <a href="http://www.suhosin.org/">Suhosin patch</a> for PHP - version 0.9.27.
</p>
<p>
The previous update (0.9.26) updated the utility with an improved randomness fixing a few issues with an ini setting and the uploadprogress extension as well as adding in a few new settings and updates to the randomizing functions that come included in PHP.
</p>
<p>
The 0.9.27 update (the most current) updates the patch with a lazy loading change that allows it to work correctly on systems that have it disabled by default (causing the previous patch to not work).
</p>
<p>
You can grab this latest release, 0.9.27, from <a href="http://www.suhosin.org/">the suhosin website</a>.
</p>]]></description>
      <pubDate>Mon, 25 Aug 2008 12:06:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Cormac's Blog: Lazy loading of object variables in php using __get()]]></title>
      <guid>http://www.phpdeveloper.org/news/10795</guid>
      <link>http://www.phpdeveloper.org/news/10795</link>
      <description><![CDATA[<p>
Recently, <i>Cormac</i> posted <a href="http://cormacscode.wordpress.com/2008/08/01/lazy-loading-in-php-using-__get/">this look at</a> a method for lazy loading on variables in an object with the magic __get method.
</p>
<blockquote>
I used the magic method __get() to load the images into the [Product] object when they were needed. __get() is called whenever something tries to access a variable that is not set or publically accessible, so basically I used that to load the images whenever some other piece of code tried to access Product::images.
</blockquote>
<p>
He includes a quick bit of code that fires off an internal private method for the class that loads up the images. In his example, if they're already loaded, it never gets called.
</p>]]></description>
      <pubDate>Fri, 08 Aug 2008 14:22:51 -0500</pubDate>
    </item>
  </channel>
</rss>
