November 9th, 2010, 09:00 AM
PHP Creating HTML Widgets
In this third part of a series I develop another sample class, which will use the Object Value design pattern to create immutable HTML div objects in a few easy steps. The pattern's implementation in this case will be a bit more interesting than usual -- it will use the PHP built-in type hinting feature to define a method that returns a new div object to client code, while keeping the immutability of the originating object intact.
Read the full article here: PHP Creating HTML Widgets
For more discussion go here: Blog Article Discussion