index_kc50.class.php 879 B

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