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

Travis Swicegood:
Fluent-API, here I come!
Oct 29, 2007 @ 03:34:43

On his blog, Travis Swicegood discusses method chaining and Fluent APIs in PHP5.

One of the things that bugs me about PHP is that fluent APIs that were made possible by method chaining in PHP 5 are hindered by the new keyword. In Python or Javascript it's possible to instantiate the object and continue chaining it.

Check out the comments on his blog for more code examples and solutions for implementing method chaining in PHP5

tagged: fluentapi methodchaining api php5 tutorial fluentapi methodchaining api php5 tutorial

Link:

Travis Swicegood:
Fluent-API, here I come!
Oct 29, 2007 @ 03:34:43

On his blog, Travis Swicegood discusses method chaining and Fluent APIs in PHP5.

One of the things that bugs me about PHP is that fluent APIs that were made possible by method chaining in PHP 5 are hindered by the new keyword. In Python or Javascript it's possible to instantiate the object and continue chaining it.

Check out the comments on his blog for more code examples and solutions for implementing method chaining in PHP5

tagged: fluentapi methodchaining api php5 tutorial fluentapi methodchaining api php5 tutorial

Link:


Trending Topics: