coverreply.table.php 744 B

123456789101112131415161718192021
  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. defined('IN_IA') or exit('Access Denied');
  7. class CoverreplyTable extends We7Table {
  8. protected $tableName = 'cover_reply';
  9. protected $primaryKey = 'id';
  10. protected $field = array('id', 'uniacid', 'multiid', 'rid', 'module', 'do', 'type', 'title', 'description', 'thumb', 'url');
  11. public function getCoverReplayInfo($module, $uniacid) {
  12. $result = $this->query->from($this->tableName)->where('module', $module)->where('uniacid', $uniacid)->get();
  13. return $result;
  14. }
  15. public function searchWithMultiid($multiid) {
  16. return $this->query->where('multiid', $multiid);
  17. }
  18. }