<?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>Thu, 23 May 2013 19:08:19 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[WebSpeaks.in: Learn Simple Method Chaining in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15942</guid>
      <link>http://www.phpdeveloper.org/news/15942</link>
      <description><![CDATA[<p>
On WebSpeaks.in today there's a recent post that introduces you to something more and more applications are using - especially frameworks - <a href="http://www.webspeaks.in/2011/02/learn-method-chaining-with-advanced.html">method chaining</a> in PHP OOP apps.
</p>
<blockquote>
In this article we will learn an advanced OOPS programming concept in PHP known as Method chaining. If you have worked on PHP frameworks like Zend, Magento or CakePHP, you might have noticed a very convinient style of accessing methods of different classes. [...] This type of programming technique is known as method chaining. If you are thinking how is it possible to perform this chaining, then don't worry. Today we will learn this fancy concept.
</blockquote>
<p>
They create a simple class, a Person, and show the difference between calling several methods on the created object versus a method chained example that calls all three, making updates to the object itself ($this). There's also a bit more complicated example with three different classes in the mix.
</p>]]></description>
      <pubDate>Tue, 22 Feb 2011 11:09:13 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ben Vinegar's Blog: ActiveSupport for PHP - Ruby style]]></title>
      <guid>http://www.phpdeveloper.org/news/8451</guid>
      <link>http://www.phpdeveloper.org/news/8451</link>
      <description><![CDATA[<p>
<i>Ben Vinegar</i>, having come from Rails to PHP was missing something - the ActiveSupport functionality Rails had natively that PHP doesn't. So, he's <a href="http://benlog.org/2007/8/13/activesupport-for-php-ruby-style">written up his own support</a> for it and shares it in his latest blog post.
</p>
<blockquote>
One of the things I miss most from Rails is ActiveSupport, the module that modifies Ruby's core classes (numbers, strings, more) with handy utility methods. They tie so well into the language, most Rails developers don't realize they aren't core methods.
</blockquote>
<p>
He starts with a Ruby example, showing how they work to show things like camelized strings, times and evaluations. Since PHP doesn't support the same syntax, he had to work around it with some "PHP trickery" in PHP5 to handle it similarly. You can check out the results in the examples in his blog or by <a href="http://benlog.org/assets/2007/8/13/active_support_php-0.1.zip">downloading the library</a> and trying it out for yourself.
</p>]]></description>
      <pubDate>Tue, 14 Aug 2007 12:57:00 -0500</pubDate>
    </item>
  </channel>
</rss>
