| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- /***
- * Class Index_scz
- * * @author 王刚涛
- * 日线数据
- */
- class Index_scz {
- public function __construct()
- {
- }
- static public function getInfoById($id)
- {
- $Table_index_scz = new Table_index_scz();
- return $Table_index_scz->getInfoById($id);
- }
- static public function insert($attrs)
- {
- if (empty($attrs)) throw new Exception('参数不能为空', 102);
- $Table_index_scz = new Table_index_scz();
- $id = $Table_index_scz->insert($attrs);
- return $id;
- }
- /****
- * @param $date
- * @return mixed
- * @throws Exception
- *
- */
- static public function add($attrs){
- if (empty($attrs)) throw new Exception('参数不能为空', 102);
- $Table_index_scz = new Table_index_scz();
- $id = $Table_index_scz->add($attrs);
- return $id;
- }
- static public function getList($filter = array(), $count=0, $page=0, $pageSize=0)
- {
- $Table_index_scz = new Table_index_scz();
- return $Table_index_scz->getList($filter, $count, $page, $pageSize);
- }
- }
- ?>
|