What is the function of the basedao.php file in the website?

更新于
2026-09-26 02:21:36
1阅读来源:SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计177个文字,预计阅读时间需要1分钟。

What is the function of the basedao.php file in the website?

php_db=new MysqlDB();// 此处不能进行操作/** * 获取处理 * @param array $filter 过滤条件 * @param string $field 获取字段 * @param int $page 当前页 * @param int $limit 页数 */function f() { // ...}

basedao.php

_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->_db->execute(); } function update(){} function delete(){} function insert(){} } class MemberDAO extends BaseDAO { var $_table = "member"; } $oMember = new MemberDAO(); $oMember->fetch(); /** * 常用到的地方: * MVC中model层基类 */ ?>

What is the function of the basedao.php file in the website?

本文共计177个文字,预计阅读时间需要1分钟。

What is the function of the basedao.php file in the website?

php_db=new MysqlDB();// 此处不能进行操作/** * 获取处理 * @param array $filter 过滤条件 * @param string $field 获取字段 * @param int $page 当前页 * @param int $limit 页数 */function f() { // ...}

basedao.php

_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->_db->execute(); } function update(){} function delete(){} function insert(){} } class MemberDAO extends BaseDAO { var $_table = "member"; } $oMember = new MemberDAO(); $oMember->fetch(); /** * 常用到的地方: * MVC中model层基类 */ ?>

What is the function of the basedao.php file in the website?