<?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>Mon, 20 May 2013 07:31:27 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: An Intro to Virtual Proxies, Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/17869</guid>
      <link>http://www.phpdeveloper.org/news/17869</link>
      <description><![CDATA[<p>
Following up on his <a href="http://phpdeveloper.org/news/17838">previous article</a>, <i>Alejandro Gervasio</i> has a new post to PHPMaster.com with the <a href="http://phpmaster.com/intro-to-virtual-proxies-2/">second part of his series</a> on using virtual proxies in PHP.
</p>
<blockquote>
Resting on the foundation of Polymorphism (dynamic Polymorphism, not the ad-hoc one often achieved through plain method overriding), Virtual Proxies are a simple yet solid concept which allows you to defer the construction/loading of expensive object graphs without having to modify client code.
</blockquote>
<p>
He shows how to create a collection of domain objects that use proxies to populate their data. He includes the code for creating a "Post" interface/object as well as a Comment interface/object. These are put into a "CommentCollection" and, when it's accessed, pull the item in the collection out, only populating the data on demand.
</p>]]></description>
      <pubDate>Thu, 26 Apr 2012 09:24:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ivo Jansch's Blog: Building proxies, decorators and delegates in PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/5740</guid>
      <link>http://www.phpdeveloper.org/news/5740</link>
      <description><![CDATA[<p>
Ivo Jansch today gives an <a href="http://www.achievo.org/blog/archives/44-Building-proxies,-decorators-and-delegates-in-PHP5.html">excellent look</a> on proxies, decorators and delegates; three popular desigh patterns.
</p>

<blockquote>
<p>
In PHP5, you can define methods in an object for intercepting calls to methods of an object and for intercepting access to object member variables. These methods (__get, __set and __call) enable the implementation of very generic proxies, decorators and delegators.
</p>
</blockquote>

<p>
<a href="http://www.achievo.org/blog/archives/44-Building-proxies,-decorators-and-delegates-in-PHP5.html">This</a> is  a great introduction to these three patterns and how to implement them in PHP
</p>]]></description>
      <pubDate>Mon, 03 Jul 2006 19:54:13 -0500</pubDate>
    </item>
  </channel>
</rss>
