DevShed has posted the latest in their "Building Object-Oriented Database Interfaces in PHP" series today - Abstracting Database Tables.
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.
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.
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...




