include/Model.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
*****************************************************************
* 联系QQ: 290802026 *
* 版 本: V2.0 *
* 开发者:雨中磐石工作室 *
* 邮 箱: admin@rockoa.com *
* 网 址: http://www.rockoa.com/ *
* 说 明: 数据模型 *
* 备 注: 未经允许不得商业出售,代码欢迎参考纠正 *
*****************************************************************
*/
abstract class Model{
public $perfix = PREFIX;
public $rock;
public $db;
public $table;
public $adminname;
public $adminid;
public $tempxinxi = array();
public function __construct($table='')
{
$this->rock = $GLOBALS['rock'];
$this->db = $GLOBALS['db'];
$this->adminid = $this->rock->adminid;
$this->adminname = $this->rock->adminname;
$this->settable($table);
$this->initModel();
}
public function settable($table, $qzbo=true)
{
$this->table = ''.$this->perfix.''.$table.'';
if(!$qzbo)$this->table = $table;
}
public function initModel(){}
public function getmou($fields, $where, $order='')
{
return $this->db->getmou($this->table, $fields, $where, $order);
}
public function getone($where, $fields='*', $order='')
{
return $this->db->getone($this->table, $where, $fields, $order);
}
public function getrows($where, $fields='*', $order='', $limit='')
{
return $this->db->getrows($this->table, $where, $fields, $order, $limit);
}
public function getall($where, $fields='*', $order='', $limit='')
{
$sql = $this->db->getsql(array(
后面还有 131 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
