News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Stuart Herbert's Blog:
Quick Tip Get, Set and Query in One Method
December 12, 2007 @ 14:07:00

On his blog, Stuart Herbert has a quick tip showing how to mimic a feature of Ruby on Rails:

I'm still working on the next article in my series looking at PHP on servers, so in the mean time, check out this simple way to emulate Ruby's nice way of handling separate getter, setter and state query methods in PHP.

He admits his example isn't as elegant as the Ruby method, but it does get the job done. Code for the method is included in his post ready for cut and pasting.

1 comment voice your opinion now!
tip get set method cache rubyonrails example tip get set method cache rubyonrails example




Similar Posts

php|architect: The Magic __set_state Method

YoungCoders.com: The PHP Construct You've Never Used

IBM developerWorks: Going dynamic with PHP

The PHP Grind: Get real about PHP4 vs. PHP5!

DevShed: Working with Template Classes in PHP 5


Community Events











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


zendframework database PHP5 releases cakephp job developer release zend book security example application mysql code framework PEAR ajax conference package

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