<?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, 04 Jul 2008 22:21:56 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[ProDevTips Blog: Extending Zend DB Table]]></title>
      <guid>http://www.phpdeveloper.org/news/10450</guid>
      <link>http://www.phpdeveloper.org/news/10450</link>
      <description><![CDATA[<p>
On the ProDevTips blog, there's a <a href="http://www.prodevtips.com/2008/06/19/extending-zend-db-table/">new post</a> showing how to bend the Zend_Db table component of the Zend Framework to your will and customize parts of it for your application.
</p>
<blockquote>
For some time now I've been working on an administrative backend system. I quickly found the need to extend DB Table with more stuff than needed when I <a href="http://www.prodevtips.com/2007/11/02/writing-a-cms-with-smarty-and-the-zend-framework-part-1/">extended the Zend Framework</a>, it's mostly convenience functions designed to reduce repetitive code snippets.
</blockquote>
<p>
He <a href="http://www.prodevtips.com/2008/06/19/extending-zend-db-table/">illustrates</a> with some of the custom override functions he's made including versions of updateOne, exists, fetchOne and fetchSomething.
</p>]]></description>
      <pubDate>Fri, 20 Jun 2008 09:44:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Martynas Jusevicius' Blog: PHP 5 Features: Exceptions]]></title>
      <guid>http://www.phpdeveloper.org/news/9852</guid>
      <link>http://www.phpdeveloper.org/news/9852</link>
      <description><![CDATA[<p>
On his blog today <i>Martynas Jusevicius</i> <a href="http://www.xml.lt/Blog/2008/03/25/PHP+5+features%3A+Exceptions">talks about</a> a feature that was new in PHP5 - Exceptions:
</p>
<blockquote>
A useful new feature in PHP 5 is <a href="http://devzone.zend.com/node/view/id/1714#Heading5">exception handling</a> via the try/throw/catch paradigm. An exception may be thrown and caught. If an exception is thrown in code surrounded by try, the following statements will not be executed, and the exception will be handled by the first matching catch block.
</blockquote>
<p>
He gives a high-level overview of how Exceptions in PHP5 work and includes a simple example from his work with his <a href="http://www.xml.lt/Resources/Framework">DIY Framework</a>.
</p>]]></description>
      <pubDate>Tue, 25 Mar 2008 10:21:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Arnold Daniels' Blog: A dark corner of PHP: class casting]]></title>
      <guid>http://www.phpdeveloper.org/news/9670</guid>
      <link>http://www.phpdeveloper.org/news/9670</link>
      <description><![CDATA[<p>
In <a href="http://blog.adaniels.nl/articles/a-dark-corner-of-php-class-casting/">this blog entry</a> <i>Arnold Daniels</i> talks about an issue he had in the past (needing a bit more functionality than the <a href="http://pear.php.net/package/DB">PEAR DB library</a> could offer) and how he ended up solving it with what he calls a "dark corner" of PHP - class casting.
</p>
<blockquote>
PHP has a function serialize, which can create a hash from any type of variable, scalars, array, but objects as well. Using the unserialize function, PHP can recreate the variable from the serialized hashed. If we look at how an object is serialized, we see only the properties and the class name are stored.
</blockquote>
<p>
<a href="http://blog.adaniels.nl/articles/a-dark-corner-of-php-class-casting/">His method</a> allows for class manipulation via changes to the serialized class information (like changing the value of the name parameter). His "casttoclass()" function makes changing this value simple.
</p>]]></description>
      <pubDate>Wed, 20 Feb 2008 12:08:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Spindrop.us: sfZendPlugin (a Zend Framework plugin for Symfony)]]></title>
      <guid>http://www.phpdeveloper.org/news/7601</guid>
      <link>http://www.phpdeveloper.org/news/7601</link>
      <description><![CDATA[<p>
In <a href="http://spindrop.us/2007/04/10/sfzendplugin/">a new post</a> to the SpinDrop blog, <i>Dave Dash</i> talks about his integration of the Zend Framework into a symfony installation - inside a plugin.
</p>
<blockquote>
<p>
I originally intended to rewrite my <a href="http://spindrop.us/2006/08/25/using-zend-search-lucene-in-a-symfony-app/">Zend Search Lucene tutorial</a>, but <a href="http://archivemati.ca/2007/03/08/zend-search-lucene-symfony-and-the-ica-atom-application/">Peter Van Garderen</a> covered the bulk of what’s changed and I was too busy developing search functionality for <a href="http://lyro.com/">lyro.com</a> (not to mention finding inconsistencies with the Zend Search Lucene port and Lucene) to finish the tutorial. So I broke it up into smaller pieces.
</p>
<p>
I packaged <a href="http://framework.zend.com/">Zend Framework</a> into a <a href="http://www.symfony-project.com/trac/browser/plugins/sfZendPlugin">symfony plugin</a>. <a href="http://symfony-project.com/">symfony</a> is easily extended using plugins. 
</p>
</blockquote>
<p>
He includes <a href="http://spindrop.us/2007/04/10/sfzendplugin/">the method he used</a> to get the plugin up and working (downloading his custom ZF plugin) and how to use the <a href="http://www.symfony-project.com/book/trunk/17-Extending-Symfony#Bridges%20to%20Other%20Framework%20Components">Zend Framework Bridge</a> to get it and symfony cooperating.
</p>]]></description>
      <pubDate>Wed, 11 Apr 2007 10:03:00 -0500</pubDate>
    </item>
  </channel>
</rss>
