index_csi300.class.php 902 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /***
  3. * Class Index_csi300
  4. * * @author 王刚涛
  5. * 日线数据
  6. */
  7. class Index_csi300 {
  8. /****
  9. * @param $attrs
  10. * @return mixed
  11. * @throws Exception
  12. *
  13. */
  14. static public function add($attrs){
  15. if (empty($attrs)) throw new Exception('参数不能为空', 102);
  16. $Table_index_csi300 = new Table_index_csi300();
  17. $id = $Table_index_csi300->add($attrs);
  18. return $id;
  19. }
  20. /****
  21. * @param $page
  22. * @param $pagesize
  23. */
  24. static public function getListByPage($page, $pagesize){
  25. $filter = array();
  26. $Table_index_csi300 = new Table_index_csi300();
  27. return $Table_index_csi300->getList($filter, 0, $page, $pagesize);
  28. }
  29. //管理员日志总数
  30. static public function getCountAll(){
  31. $filter = array();
  32. $Table_index_csi300 = new Table_index_csi300();
  33. return $Table_index_csi300->getList($filter, 1);
  34. }
  35. }
  36. ?>