Guezt
04-28-2009, 03:07 AM
So I have the following arangement:
class Sanitize{
// makes strings safe for dbs
}
interface Database{
// database interface
}
Class MySQL extends Sanitize implements Database{
}
so to use a query $whatever = new MySQL; and then those functions are used. (there are several supported DBs, hence the interface).
So last night I was thinking of something else I could either extend to add to (as it would be only functions) the MySQL class. The problem is I can't remember what I thought of and it's really annoying me. Any ideas? PS please don't comment on the class structure.
class Sanitize{
// makes strings safe for dbs
}
interface Database{
// database interface
}
Class MySQL extends Sanitize implements Database{
}
so to use a query $whatever = new MySQL; and then those functions are used. (there are several supported DBs, hence the interface).
So last night I was thinking of something else I could either extend to add to (as it would be only functions) the MySQL class. The problem is I can't remember what I thought of and it's really annoying me. Any ideas? PS please don't comment on the class structure.