Styles.php 653 B

1234567891011121314151617181920212223242526
  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 Styles extends \We7Table {
  8. protected $tableName = 'site_styles';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'templateid',
  13. 'name',
  14. );
  15. protected $default = array(
  16. 'uniacid' => '',
  17. 'templateid' => '',
  18. 'name' => '',
  19. );
  20. public function searchWithTemplates($fields = 'a.*') {
  21. return $this->query->from('site_styles', 'a')->select($fields)->leftjoin('modules', 'b')->on(array('a.templateid' => 'b.mid'));
  22. }
  23. }