<?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>Fri, 09 Jan 2009 06:13:26 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Simulating Events with PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/4873</guid>
      <link>http://www.phpdeveloper.org/news/4873</link>
      <description><![CDATA[On DevShed today, there's <a href="http://www.devshed.com/c/a/PHP/Simulating-Events-with-PHP-5/">this new tutorial</a> aimed at more advanced PHP developers concerning how to simulate events in PHP5.
<p>
<quote>
<i>
PHP has the drawback of not supporting events. Fortunately, a basic structure can be built to support events in PHP 5. This article tackles that problem with some proof of concept code.
<p>
It seemed reasonable to me that some sort of basic structure could be established to support events in PHP 5, so I set out to whip something up as quickly as possible as a proof of concept. The contents of this article are the work of roughly one programming hour and surely stand to be improved upon, but the basic idea is this: instantiate an object and attach event handlers; the handlers will be executed when the events they are associated with are raised.
</i>
</quote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Simulating-Events-with-PHP-5/">look first</a> at how to create a simple object to store the information in and a "collection" class to manage those objects. They move on to the creation of the event handler class and a "collection" class for handling those as well. Finally, they get to the combination of the above items - a class that does an eval on the inputted string and creates an associative array.]]></description>
      <pubDate>Tue, 21 Feb 2006 06:46:23 -0600</pubDate>
    </item>
  </channel>
</rss>
