PHP 5 OOP: The Template Pattern
PHP Article Published June 2, 2006
Learn how you can use inheritance in conjunction with the template pattern to create application-specific instances of your objects.
Learn how you can use inheritance in conjunction with the template pattern to create application-specific instances of your objects.
Extend the DBQuery to allow for support of all the functions in the DB interface that operate on the result of an executed query. This will be accomplished using delegation.
Protect your data using visibility modifiers.
The improved object model in PHP 5 makes developing applications using OOP much easier and gives you the programmer, greater flexibility.