<?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>Wed, 22 May 2013 08:52:18 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Introducing the Memento Pattern]]></title>
      <guid>http://www.phpdeveloper.org/news/7055</guid>
      <link>http://www.phpdeveloper.org/news/7055</link>
      <description><![CDATA[<p>
Diving even further into the world of design patterns, DevShed has posted <a href="http://www.devshed.com/c/a/PHP/Introducing-the-Memento-Pattern/">this new tutorial</a> looking at the Memento pattern - useful for (in their example) carrying objects from page to page.
</p>
<blockquote>
Don't you worry about it for the moment, because in this two-part series, I'm going to demonstrate with numerous code samples how to apply the memento pattern so that it can be used within your own PHP applications with only minor problems.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Introducing-the-Memento-Pattern/">start with</a> the simplest example of the pattern, working with arrays - get, set, etc. On top of that, they build a "caretaker" class that 
</p>will be the one holding the state of the object from the other class. Finally, they tie them both together to create a simple model of a caretaker that stores and remembers how the object inside is formatted.]]></description>
      <pubDate>Mon, 08 Jan 2007 15:48:00 -0600</pubDate>
    </item>
  </channel>
</rss>
