index_sh.class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /***
  3. * Class Index_sh
  4. * * @author 王刚涛
  5. * 日线数据
  6. */
  7. class Index_sh {
  8. public function __construct()
  9. {
  10. }
  11. static public function insert($attrs)
  12. {
  13. if (empty($attrs)) throw new Exception('参数不能为空', 102);
  14. $Table_index_sh = new Table_index_sh();
  15. $id = $Table_index_sh->insert($attrs);
  16. return $id;
  17. }
  18. static public function getInfoById($id)
  19. {
  20. $Table_index_sh = new Table_index_sh();
  21. return $Table_index_sh->getInfoById($id);
  22. }
  23. /**
  24. * 记录管理员日志
  25. *
  26. * @param $log 日志内容
  27. *
  28. */
  29. static public function add($attrs){
  30. if (empty($attrs)) throw new Exception('参数不能为空', 102);
  31. $Table_index_sh = new Table_index_sh();
  32. $id = $Table_index_sh->add($attrs);
  33. return $id;
  34. }
  35. static public function getList($filter = array(), $count=0, $page=0, $pageSize=0)
  36. {
  37. $Table_index_sh = new Table_index_sh();
  38. return $Table_index_sh->getList($filter, $count, $page, $pageSize);
  39. }
  40. }
  41. ?>