News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
DevShed:
Introducing Bridge Classes with PHP 5
January 03, 2007 @ 10:24:00

DevShed introduces a new kind of class in their latest tutorial - bridge classes:

The bridge class, or what's commonly known as the bridge pattern, lets you create a class with its abstract functionality and implementation residing on different class hierarchies. This lets you decouple the class from its concrete application. This article, the first of three parts, introduces you to the bridge pattern and its uses.

They look at what it is first, describing it as a method of decoupling the functionality behind a factory object. This is followed (logically) with a simple example of one in use with the creation of a "Message" class and object. They put the core logic of the pattern in place behind it and combine the object and the backend to save the message off to a file.

0 comments voice your opinion now!
bridge class object pattern php5 tutorial bridge class object pattern php5 tutorial



Similar Posts

DevShed: Am Introduction to PHP Security

DevShed: Defining the Core Structure of a PHP Blogger

Zend Developer Zone: Using a Plugin to Integrate Propel with Zend

Bill's IIS Blog: PHP on IIS7 w/FastCGI

DevShed.com: The Singleton and Factory Patterns in PHP - Working With Singletons


Community Events







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


code database PEAR mysql package releases application zend book ajax security zendframework framework job PHP5 conference cakephp developer example release

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