News Feed
Jobs Feed
Sections




News Archive
ElectricToolBox.com:
Method chaining with PHP
December 22, 2008 @ 12:37:07

On the ElectricToolBox.com blog there's a quick post looking at method chaining in a Zend Framework application:

Having used the Zend Framework on a couple of projects and spent a lot of time reading the documentation I discovered the use of method chaining. This post looks at how to use method chaining in PHP.

His examples include a comparison between a method-chained Zend_Mail example and a non-chained method with each line augmenting the same object over and over. He also includes the simple-as-pie method that lets you use chaining in your own applications - returning the object itself.

0 comments voice your opinion now!
method chain zendframework zendmail tutorial example


blog comments powered by Disqus

Similar Posts

Brian Deshong's Blog: Who’s Online with PHP and Memcached

DevShed: Searching and Replacing Nodes with SimpleXML in PHP 5 (Part 3)

PHP-Coding-Practices.com: Composing Methods: Replace Temp With Query

KillerPHP.com: Zend Framework Components Part 2: Zend_View

IBM developerWorks: U2 PDO Driver Tutorial, Parts 1 & 2


Community Events











Don't see your event here?
Let us know!


database composer code introduction interview zendframework2 language tool object podcast opinion functional conference series community release example framework testing development

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework