stock.class.php 774 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * 管理员日志类
  4. *
  5. * @createtime 2018/03/01
  6. * @author 空竹
  7. * @copyright 芝麻开发(http://www.zhimawork.com)
  8. */
  9. class Stock {
  10. /**
  11. * 记录管理员日志
  12. *
  13. * @param $log 日志内容
  14. *
  15. */
  16. static public function add($log){
  17. }
  18. /**
  19. * 管理员日志记录列表
  20. *
  21. * @param $page 当前页
  22. * @param $pagesize 每页大小
  23. *
  24. */
  25. static public function getListByPage($page, $pagesize){
  26. $filter = array();
  27. $Table_stock = new Table_stock();
  28. return $Table_stock->getList($filter, 0, $page, $pagesize);
  29. }
  30. //管理员日志总数
  31. static public function getCountAll(){
  32. $filter = array();
  33. $Table_stock = new Table_st_log();
  34. return $Table_stock->getList($filter, 1);
  35. }
  36. }
  37. ?>