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

DevShed:
Building OOP Interfaces - Abstracting Database Tables
Aug 17, 2005 @ 13:53:11

DevShed has posted the latest in their "Building Object-Oriented Database Interfaces in PHP" series today - Abstracting Database Tables.

Welcome to part two of the series "Building Object-Oriented Database Interfaces in PHP." In the previous article, I offered complete coverage of the role that database interfaces play in Web applications, highlighting the immediate benefits of having a centralized mechanism for accessing, processing and verifying data, within an object-oriented environment.

The "DBIGenerator" class I showed for demonstration purposes in the first article doesn't scale well in real applications. In this article, we will start solving its problems with a revamped version of the class.

They look at the class they started out with in the previous article and improve upon it (though they still write the PHP out to a file - bleh). They go through the code, explaining it the whole way, and talk specifically about the generate(), update(), and delete() functionality...

tagged:

Link:


Trending Topics: