day_k_base.class.php 969 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Class Day_k_base
  4. * @author 王刚涛
  5. * 日线数据
  6. */
  7. class Day_k_base {
  8. /***
  9. * @param $attrs
  10. * @return mixed
  11. * @throws Exception
  12. * 添加信息
  13. */
  14. static public function add($attrs)
  15. {
  16. if (empty($attrs)) throw new Exception('参数不能为空', 102);
  17. $Table_day_k_base = new Table_day_k_base();
  18. $id = $Table_day_k_base->add($attrs);
  19. return $id;
  20. }
  21. /**
  22. * 管理员日志记录列表
  23. *
  24. * @param $page 当前页
  25. * @param $pagesize 每页大小
  26. *
  27. */
  28. static public function getListByPage($page, $pagesize){
  29. $filter = array();
  30. $Table_day_k_base = new Table_day_k_base();
  31. return $Table_day_k_base->getList($filter, 0, $page, $pagesize);
  32. }
  33. //管理员日志总数
  34. static public function getCountAll(){
  35. $filter = array();
  36. $Table_day_k_base = new Table_st_log();
  37. return $Table_day_k_base->getList($filter, 1);
  38. }
  39. }
  40. ?>