reader.class.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: wangming
  5. * Date: 2019/1/22
  6. * Time: 21:34
  7. */
  8. class Common_guest{
  9. public function __construct()
  10. {
  11. }
  12. static public function getInfoById($id)
  13. {
  14. $Table_common_guest = new Table_common_guest();
  15. return $Table_common_guest->getInfoById($id);
  16. }
  17. static public function getInfoByPhone($phone)
  18. {
  19. $Table_common_guest = new Table_common_guest();
  20. return $Table_common_guest->getInfoByPhone($phone);
  21. }
  22. static public function getInfoByOpenId($openId)
  23. {
  24. $Table_common_guest = new Table_common_guest();
  25. return $Table_common_guest->getInfoByOpenId($openId);
  26. }
  27. static public function add($attrs)
  28. {
  29. $Table_common_guest = new Table_common_guest();
  30. $id = $Table_common_guest->add($attrs);
  31. return $id;
  32. }
  33. static public function edit($id, $attrs)
  34. {
  35. $Table_common_guest = new Table_common_guest();
  36. return $Table_common_guest->edit($id, $attrs);
  37. }
  38. static public function update($id, $attrs)
  39. {
  40. $Table_common_guest = new Table_common_guest();
  41. return $Table_common_guest->update($id, $attrs);
  42. }
  43. static public function del($id)
  44. {
  45. $Table_common_guest = new Table_common_guest();
  46. return $Table_common_guest->del($id);
  47. }
  48. static public function getList($filter = array(), $count=0, $page=0, $pageSize=0)
  49. {
  50. $Table_common_guest = new Table_common_guest();
  51. return $Table_common_guest->getList($filter, $count, $page, $pageSize);
  52. }
  53. static public function getListByPage($filter = array(), $page=0, $pagesize=0){
  54. $Table_common_guest = new Table_common_guest();
  55. return $Table_common_guest->getList($filter, 0, $page, $pagesize);
  56. }
  57. static public function getCountAll($filter = array()){
  58. $Table_common_guest = new Table_common_guest();
  59. return $Table_common_guest->getList($filter, 1);
  60. }
  61. }