News Feed
Jobs Feed
Sections




News Archive
Timothy Boronczyk's Blog:
Evil Access (a Database Class)
January 21, 2009 @ 21:34:04

Timothy Boronczyk has posted a class that provides a different sort of theory on database access:

I was thinking today about database APIs when inspiration struck. I ended up hacking out the following class, which I think demonstrates a rather interesting approach to interfacing with a database (interesting enough at least to post here).

His class implements an Iterator and lets you bend a few of the rules PHP normally has in place (use of the magic methods, special characters in an identifier). He also includes an example of its use - connecting to the database, selecting information and pulling that information back out.

0 comments voice your opinion now!
database class iterator implement magicmethod


blog comments powered by Disqus

Similar Posts

JSLabs Blog: An ftp server written in PHP

Juhana Rasanen's Blog: Using MongoDB with CodeIgniter

IBM developerWorks: Five more PHP design patterns

DevShed: Throwing Basic Exceptions When Auto Loading Classes in PHP 5

Jachim Coudenys: Using multiple databases in phpunit/dbunit with Composer


Community Events











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


rest unittest database language interview framework symfony2 usergroup opinion functional development podcast series community introduction release phpunit conference testing zendframework2

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