News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

Michelangelo van Dam's Blog: Unit testing with Zend Framework 1.8+

Phish Tank: Install & Configure Apache+PHP+ZendFramework+OracleDbXe On Windows In Minutes

ElectricToolBox.com: Method chaining with PHP

DevShed: Using Static Methods to Validate Data with Helpers in PHP 5

Till Klampaeckel: Continuous Integration: Automated database setup with Doctrine on Travis-CI


Community Events





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


series release deployment opinion list podcast interview symfony zendserver laravel community introduction language api framework tips library bugfix developer threedevsandamaybe

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