| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- /***
- * Class Index_sh
- * * @author 王刚涛
- * 日线数据
- */
- class Index_sh {
- public function __construct()
- {
- }
- static public function insert($attrs)
- {
- if (empty($attrs)) throw new Exception('参数不能为空', 102);
- $Table_index_sh = new Table_index_sh();
- $id = $Table_index_sh->insert($attrs);
- return $id;
- }
- static public function getInfoById($id)
- {
- $Table_index_sh = new Table_index_sh();
- return $Table_index_sh->getInfoById($id);
- }
- /**
- * 记录管理员日志
- *
- * @param $log 日志内容
- *
- */
- static public function add($attrs){
- if (empty($attrs)) throw new Exception('参数不能为空', 102);
- $Table_index_sh = new Table_index_sh();
- $id = $Table_index_sh->add($attrs);
- return $id;
- }
- static public function getList($filter = array(), $count=0, $page=0, $pageSize=0)
- {
- $Table_index_sh = new Table_index_sh();
- return $Table_index_sh->getList($filter, $count, $page, $pageSize);
- }
- }
- ?>
|