News Feed
Sections




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

DevShed:
Expanding the Application Range of Visitor Objects in PHP 5
August 09, 2006 @ 06:57:01

DevShed continues their series on the Visitor objects in PHP5 with this second part, looking at expanding the "application range" of the objects.

Well, at this stage I'm assuming that creating visitor objects with PHP isn't a strange concept to you any longer, therefore I'll continue this journey by developing some additional -yet useful- examples on how to build up and implement visitors with PHP 5. The main purpose of this is simply reaffirming the concepts deployed in the first tutorial, so you can have a solid background for including your own visitor classes inside your PHP applications.

They start off by creating a new abstract class to use in this part, a User class with plenty of properties and methods. Next up, they make a class extending this base, abstract class to make a SoftwareUser that will accept visitor objects. They then use this interface and create a Visitor class to make the calls, showing a code example of them playing nicely together.

0 comments voice your opinion now!
visitor application range tutorial php5 object visitor application range tutorial php5 object


blog comments powered by Disqus

Similar Posts

Gergely Hodicska's Blog: What is new in PHP 5.3 - part 2: late static binding

MaltBlue.com: \Zend\Db\Sql - Creating Joins and Unions with Ease

DevShed: Using the Sleep and Wakeup Functions to Serialize Objects in PHP (Part 2)

FWebDe Blog: Use SQLite For Your Next PHP Project

Tobias Schlitt's Blog: Sending HEAD requests with ext/curl


Community Events





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


opinion language developer introduction list unittest wordpress podcast configure laravel experience series release code testing install threedevsandamaybe framework community interview

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