News Feed
Jobs Feed
Sections




News Archive
DevShed:
Introduction to Creating Command Objects with PHP 5
December 12, 2006 @ 14:32:00

DevShed starts off a new series today in this first part of the series looking at the creation of and working with command objects in PHP5.

In this article, the first part of a series, you'll learn the basics of applying the command pattern with PHP 5. As always, plenty of hands-on examples are included.

A command class involves having a commander and the implementers that work together to do things like (what they illustrate) manipulating strings. They create the commander class and give a simple example of a subclass that implements it. They create a few more and tie them all into a master class to work together. Finally, they give an illustration of the code in action - uppercasing a string and inverting it to read backwards, then output.

0 comments voice your opinion now!
command object design pattern php5 part1 command object design pattern php5 part1


blog comments powered by Disqus

Similar Posts

Greg Beaver's Blog: behold pecl/phar and mighty PHP 5.3, also php|arch and php|tek

Eran Galperin's Blog: Common misconceptions in web application development

DevShed: The Basics of Abstract Factory Classes in PHP 5

David Gardner's Blog: Why you should always use PHP interfaces

DevShed: Iterators in the Simplest Sense - An Accessible Implementation in PHP 4


Community Events











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


podcast example functional composer code release application zendframework2 community api framework opinion development language introduction testing unittest interview phpunit series

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