News Feed
Sections




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

DevShed:
Using Self-Saving Objects with Command Objects in PHP 5
December 26, 2006 @ 16:37:00

DevShed steps into the final part of their series looking at Command objects in PHP5 with this new tutorial just posted - "Using Self-Saving Objects with Command Objects in PHP 5".

I'm going to extend the creation and use of command objects to use the pattern in a more helpful fashion. Essentially, I'm going to explain how to utilize command classes for defining and handling self-saving objects, that is objects capable of storing a copy of themselves on a database, text file, etc.

They start by defining the core modules and classes for the creation of the objects. They build the other functionality on top of that, creating the save and load mechanisms. The wrap things up and add a few more small bits of functionality before giving a real-life example of the pattern and code in action.

0 comments voice your opinion now!
command pattern object save automatic tutorial command pattern object save automatic tutorial


blog comments powered by Disqus

Similar Posts

KillerPHP.com: The Zend Framework: Writing Object-Oriented PHP with Ease

Pierre-Alain Joye's Blog: ext/filter, API frozen (!) and fixes, 0.11.0 is out

Travis Swicegood: Fluent-API, here I come!

The Bakery: Lots of New Articles/Tutorials/Components

Derick Rethans' Blog: What is PHP doing?


Community Events

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


library opinion conference install introduction series community api symfony2 extension version release framework php7 podcast voicesoftheelephpant laravel performance interview example

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