123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- * [WeEngine System] Copyright (c) 2014 WE7.CC
- * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
- */
- namespace We7\Table\Cover;
- class Reply extends \We7Table {
- protected $tableName = 'cover_reply';
- protected $primaryKey = 'id';
- protected $field = array(
- 'uniacid',
- 'multiid',
- 'rid',
- 'module',
- 'do',
- 'title',
- 'description',
- 'thumb',
- 'url',
- );
- protected $default = array(
- 'uniacid' => '',
- 'multiid' => 0,
- 'rid' => '',
- 'module' => '',
- 'do' => '',
- 'title',
- 'description' => '',
- 'thumb' => '',
- 'url' => '',
- );
-
- public function getAllByUniacid($uniacid) {
- return $this->query->where('uniacid', $uniacid)->getall();
- }
- public function searchWithUniacid($uniacid) {
- return $this->query->where('uniacid', $uniacid);
- }
- public function searchWithMultiid($multiid) {
- return $this->query->where('multiid', $multiid);
- }
- }
|