数据访问对象模式.docVIP

  • 7
  • 0
  • 约1.81万字
  • 约 20页
  • 2016-06-23 发布于江苏
  • 举报
数据访问对象模式.doc

?php /** ?* 数据访问对象(Data Access Object) 示例 ?* @create_date: 2010-01-04 ?*/ ? class BaseDAO { ????var $_db = null; ????var $_table = null; ? ????function BaseDAO($config) ????{ ????????$this-_db = new MysqlDB(); // 这里的不能进行操作 ????} ? ????/** ?????* 获取处理 ?????* ?????* @param array $filter? // 过滤条件 ?????* @param string $field? // 获取字段 ?????* @param int $page????? // 当前页 ?????* @param int $limit???? // 页数 ?????*/ ????function fetch($filter = array(),$field = *,$page = 1,$limit = null) ????{ ????????$this-_db-select($filed)-from($this-_table)-where($filter)-limit($page,$limit); ????????return $this

文档评论(0)

1亿VIP精品文档

相关文档