News Feed
Jobs Feed
Sections




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

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

Milw0rm.com: Exploit - PHP5 COM Object Security Bypass (Windows)

Alexander Netkachev's Blog: PHP IDE with debugger 0.1.6 is out

DevShed: Tracking Parsing Errors with the Tidy Library in PHP 5

Internet Super Hero Blog: Compiling mysqlnd with PHP 5.2/5.3/6.0

Andy Frey's Blog: JavaScript PHP Remoting Demonstration


Community Events











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


hhvm release language install symfony2 overview package opinion hack framework application podcast code support component facebook security introduction composer unittest

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