php adodb allows you to use different databases without changing code
download link
http://sourceforge.net/project/showfile ... p_id=42718
Code: Select all
$conn = &ADONewConnection('oracle');
$conn = &ADONewConnection('mysql');
php adodb is simple and dont depend on any pear stuff
Also
About the idea of using object managers.
I think it a matter of style. WHy do I prefer the object route??
Data Object should not have to know anything about their external environment, they should only hold data and functions on that data.
Having manager objects that understand the relationship between data objects and create a barrier between data object and external entities like a database make a lot of sense.
In order to fix this little problem programmers created the ideas of friends functions. I just dont agree with that idea. Friends functions will basically do what the manager is supposed to do.
At the end the decision is up to the programmer. For my experience the idea of separating all external relationships and the data object interactions in an object manager work perfect , at least for me.
Good luck, I think that all I have to say in this thread.