1234567891011121314151617181920212223242526272829303132 |
- <?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\Site;
- class Multi extends \We7Table {
- protected $tableName = 'site_multi';
- protected $primaryKey = 'id';
- protected $field = array(
- 'uniacid',
- 'title',
- 'styleid',
- 'site_info',
- 'status',
- 'bindhost',
- );
- protected $default = array(
- 'uniacid' => '',
- 'title' => '',
- 'styleid' => '',
- 'site_info' => '',
- 'status' => '1',
- 'bindhost' => '',
- );
- public function getById($id) {
- global $_W;
- return $this->query->where('id', $id)->where('uniacid', $_W['uniacid'])->get();
- }
- }
|