News Feed
Sections




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

Developer.com:
PHP 5 OOP - Interfaces Abstract Classes and the Adapter Pattern
May 08, 2006 @ 06:39:33

New from Developer.com today, there's this article dealing with the improvements in the object-oriented functionality of PHP5 and its ability to easily create abstract classes - in this case, a database abstraction layer.

PHP 5 made significant improvements on the Object Orientated programming model of PHP 4 bringing it more in line with languages such as Visual Basic .NET and Java. The improved object model in PHP 5 makes developing applications using OOP much easier and gives you the programmer, greater flexibility.

In this series of articles I will demonstrate the new features of the PHP 5 object and show you how to create a database abstraction layer similar to PEAR DB. I will also introduce you to a few design patterns that can be applied to common OOP related problems.

They introduce a bit about abstraction in PHP5, including examples of abstract classes and how they can be extended easily. With this basic knowledge shared, they show a list of functions they're going to implement in the database layer, making defining them a requirement in any "child" classes. For now, their interface just links the custom function calls back to the normal MySQL functionality in PHP, but will be extended later.

0 comments voice your opinion now!
php5 oop abstract interface class database layer php5 oop abstract interface class database layer


blog comments powered by Disqus

Similar Posts

Andrei Zmievski's Blog: All the Little Pieces, or TextIterator in PHP 6

PHPBuilder.com: Creating an Online Survey - Part 2

Jacob Santos' Blog: Object Oriented Programming Isn't Easy

Christian Weiske's Blog: Importing huge XML files using PHP5 - efficiently and conveniently

PlentyofCode.com: J2EE vs ASP.NET vs PHP


Community Events

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


framework introduction list series podcast composer project example community application php7 opinion part2 interview language yii2 api conference laravel symfony

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