Page.php 797 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Page extends \We7Table {
  8. protected $tableName = 'site_page';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'multiid',
  13. 'title',
  14. 'description',
  15. 'params',
  16. 'html',
  17. 'multipage',
  18. 'type',
  19. 'status',
  20. 'createtime',
  21. 'goodnum',
  22. );
  23. protected $default = array(
  24. 'uniacid' => 0,
  25. 'multiid' => 0,
  26. 'title' => '',
  27. 'description' => '',
  28. 'params' => '',
  29. 'html' => '',
  30. 'multipage' => '',
  31. 'type' => 1,
  32. 'status' => 1,
  33. 'createtime' => 0,
  34. 'goodnum' => 0,
  35. );
  36. public function searchWithMultiid($id) {
  37. return $this->query->where('multiid', $id);
  38. }
  39. }