SettingModel.class.php
849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* 配置表信息
* User: 代军
* Date: 2017-04-24
*/
namespace Common\Model;
class SettingModel extends AbstractModel
{
/**
* 构造方法
*/
public function __construct()
{
parent::__construct();
}
/**
* 执行自定义查询SQL语句(安装应用回调时用)
*
* @author 侯英才
* @param string $sql 执行的SQL语句
*
* @return mixed
*/
public function query($sql)
{
$res = $this->_m->query($sql);
return $res;
}
/**
* 执行自定义非查询SQL语句(安装应用回调时用)
*
* @author 侯英才
* @param string $sql 执行的SQL语句
*
* @return mixed
*/
public function execute($sql)
{
$res = $this->_m->execute($sql);
return $res;
}
}