Multi.php 688 B

1234567891011121314151617181920212223242526272829303132
  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\Site;
  7. class Multi extends \We7Table {
  8. protected $tableName = 'site_multi';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'title',
  13. 'styleid',
  14. 'site_info',
  15. 'status',
  16. 'bindhost',
  17. );
  18. protected $default = array(
  19. 'uniacid' => '',
  20. 'title' => '',
  21. 'styleid' => '',
  22. 'site_info' => '',
  23. 'status' => '1',
  24. 'bindhost' => '',
  25. );
  26. public function getById($id) {
  27. global $_W;
  28. return $this->query->where('id', $id)->where('uniacid', $_W['uniacid'])->get();
  29. }
  30. }