index_sh50.class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /***
  3. * Class Index_sh50
  4. * * @author 王刚涛
  5. * 日线数据
  6. */
  7. class Index_sh50 {
  8. public function __construct()
  9. {
  10. }
  11. static public function getInfoById($id)
  12. {
  13. $Table_index_sh50 = new Table_index_sh50();
  14. return $Table_index_sh50->getInfoById($id);
  15. }
  16. static public function insert($attrs)
  17. {
  18. if (empty($attrs)) throw new Exception('参数不能为空', 102);
  19. $Table_index_sh50 = new Table_index_sh50();
  20. $id = $Table_index_sh50->insert($attrs);
  21. return $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_sh50 = new Table_index_sh50();
  32. $id = $Table_index_sh50->add($attrs);
  33. return $id;
  34. }
  35. static public function getList($filter = array(), $count=0, $page=0, $pageSize=0)
  36. {
  37. $Table_index_sh50 = new Table_index_sh50();
  38. return $Table_index_sh50->getList($filter, $count, $page, $pageSize);
  39. }
  40. }
  41. ?>