Reply.php 934 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. namespace We7\Table\Cover;
  7. class Reply extends \We7Table {
  8. protected $tableName = 'cover_reply';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'multiid',
  13. 'rid',
  14. 'module',
  15. 'do',
  16. 'title',
  17. 'description',
  18. 'thumb',
  19. 'url',
  20. );
  21. protected $default = array(
  22. 'uniacid' => '',
  23. 'multiid' => 0,
  24. 'rid' => '',
  25. 'module' => '',
  26. 'do' => '',
  27. 'title',
  28. 'description' => '',
  29. 'thumb' => '',
  30. 'url' => '',
  31. );
  32. public function getAllByUniacid($uniacid) {
  33. return $this->query->where('uniacid', $uniacid)->getall();
  34. }
  35. public function searchWithUniacid($uniacid) {
  36. return $this->query->where('uniacid', $uniacid);
  37. }
  38. public function searchWithMultiid($multiid) {
  39. return $this->query->where('multiid', $multiid);
  40. }
  41. }