<?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>Sun, 19 May 2013 03:07:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Implementing the Stage Pattern in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/7650</guid>
      <link>http://www.phpdeveloper.org/news/7650</link>
      <description><![CDATA[<p>
Back with another of their design patterns articles, DevShed <a href="http://www.devshed.com/c/a/PHP/Implementing-the-Stage-Pattern-in-PHP-5/">looks this time</a> at the Stage pattern - a flexible pattern that allows your application to adapt to requests.
</p>
<blockquote>
At least at first glance, the definition of the "Stage" pattern seems hard to grasp, which implies that the pattern in question has to be addressed from a practical point of view. In doing so, you'll have a much better idea of how it works, and eventually how it can be applied in concrete cases. [...] Over the course of this two-part series, I'm going to introduce its key concepts, and logically show you how to implement it with copious code samples.
</blockquote>
<p>
They start by <a href="http://www.devshed.com/c/a/PHP/Implementing-the-Stage-Pattern-in-PHP-5/1/">defining a DIV class</a> to act as a foundation for the Stage functionality (with methods to set the ID, the CSS class and the data inside it). They also develop a DivContext class to handle special methods surrounding the inputted DIV. Bringing it all together, they create a default DIV object and pass it into the custom DivContext to get and set the contents of the DIV.
</p>]]></description>
      <pubDate>Wed, 18 Apr 2007 12:49:00 -0500</pubDate>
    </item>
  </channel>
</rss>
