Today I created a abstract layer for accessing a database in PHP. This class includes such operator
as "connect","disconnect","executequery",and so forth. My purpose is to provIDe a uniform interface
of accessing database. So,I created two sub classes of that class. One is to access MysqL database.
Another is to access Postgresql database.
To seek a property sub classes I created a special class to adapt a sub class in according to a argument.That is a factory class,in acutal fact,it is a adaptation.
总结以上是内存溢出为你收集整理的Aprial 9th Monday (四月 九日 月曜日)全部内容,希望文章能够帮你解决Aprial 9th Monday (四月 九日 月曜日)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)