<?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 01:46:36 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Anthony Ferrara: Mediators - Programming With Anthony]]></title>
      <guid>http://www.phpdeveloper.org/news/19084</guid>
      <link>http://www.phpdeveloper.org/news/19084</link>
      <description><![CDATA[<p>
<i>Anthony Ferrara</i> has posted his latest "Programming with Anthony" video episode today <a href="http://blog.ircmaxell.com/2013/01/mediators-programming-with-anthony.html>looking at the Mediator design patter</a>. This <a href="http://en.wikipedia.org/wiki/Mediator_pattern>pattern</a> is more of a behavioral structure, defining how objects interact with each other.
</p>
<blockquote>
The Mediator Pattern is an extremely flexible and useful tool to help decouple your code and provide added flexibility in your applications. We'll explore the basic concept of a Mediator, some places you've used it and some things that you can do to improve upon the basic concept. 
</blockquote>
<p>
You can watch the video either in <a href="http://blog.ircmaxell.com/2013/01/mediators-programming-with-anthony.html">the post</a> or <a href="http://youtu.be/65hdyehA3zY">over on YouTube</a>. If you enjoy the episode, you should also consider the rest of the videos in the series, all available from <a href="https://www.youtube.com/playlist?list=PLM-218uGSX3DQ3KsB5NJnuOqPqc5CW2kW&feature=view_all">this playlist</a>.
</p>]]></description>
      <pubDate>Thu, 24 Jan 2013 10:52:23 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Anthony Ferrara's Blog: Handling Plugins In PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17654</guid>
      <link>http://www.phpdeveloper.org/news/17654</link>
      <description><![CDATA[<p>
<i>Anthony Ferrara</i> has a new post today looking at <a href="http://blog.ircmaxell.com/2012/03/handling-plugins-in-php.html">plugin handling</a> and a few of the more common design patterns that can be used to implement them in your applications.
</p>
<blockquote>
A common problem that developers face when building applications is how to allow the application to be "plug-able" at runtime.  Meaning, to allow non-core code to modify the way an application is processed at runtime.  There are a lot of different ways that this can be done, and lots of examples of it in real life.  Over a year ago, I wrote a <a href="http://stackoverflow.com/a/4471363/338665">StackOverflow Answer</a> on this topic.  However, I think it deserves another look.  So let's look at some patterns and common implementations.
</blockquote>
<p>The patterns he covers are:</p>
<ul>
<li>Observer
<li>Mediator
<li>Strategy
<li>Decorator
<li>Chain of Responsibility
</ul>
<p>
For each there's both a bit of sample code showing it in use and links to some examples from various frameworks and other projects.
</p>]]></description>
      <pubDate>Fri, 09 Mar 2012 13:34:38 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Object Interaction and Mediator Classes in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/7472</guid>
      <link>http://www.phpdeveloper.org/news/7472</link>
      <description><![CDATA[<p>
DevShed wraps up yet another in their design pattern series of articles today with <a href="http://www.devshed.com/c/a/PHP/Object-Interaction-and-Mediator-Classes-in-PHP-5/">this new tutorial</a> - the final part in their look at using Mediator classes in PHP5.
</p>
<blockquote>
At this stage I believe that implementing the mediator pattern with PHP 5 should be a pretty painless process to you, but if the examples that I showed you in the first article weren't enough to help you completely grasp this pattern, over the course of this last tutorial I'm going to expand the original mediator class that you learned previously. The expansion will make it capable of maintaining three classes in perfect synchronization.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Object-Interaction-and-Mediator-Classes-in-PHP-5/">start off</a> with the base Mediator class they developed in previous parts of the series and expand it out some more with the functionality needed to keep three (not just two) objects synchronized. To help out, they build some more file handling classes, ones that work with the three different types - numeric, alpha, and alphanumeric content.
</p>]]></description>
      <pubDate>Wed, 21 Mar 2007 11:16:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Introducing Mediator Classes in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/7424</guid>
      <link>http://www.phpdeveloper.org/news/7424</link>
      <description><![CDATA[<p>
DevShed starts off another design patterns series with <a href="http://www.devshed.com/c/a/PHP/Introducing-Mediator-Classes-in-PHP-5/">this new article</a> introducing the Mediator class pattern - a method to keep things up to date and synchronized in your PHP application.
</p>
<blockquote>
Well, in this case, the synchronization between a group of PHP classes can be made by implementing a useful pattern widely known as "mediator." In short, when the mediator pattern is applied, there's a single class that implements the logic required to keep all the other classes completely synchronized with each other. This means that not only will all the modifications introduced by one class be reflected in the others, but that those changes will be performed via the interface of the mediator class.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Introducing-Mediator-Classes-in-PHP-5/">Apply this pattern</a> with their traditional example of working with files - this time the class will handle the communication (and syncing) between two file handling objects. They add a file handling class on to the back end and apply them both in an example that lets you manipulate the data inside both files at the same time.
</p>]]></description>
      <pubDate>Tue, 13 Mar 2007 11:22:00 -0500</pubDate>
    </item>
  </channel>
</rss>
