StylesVars.php 751 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 StylesVars extends \We7Table {
  8. protected $tableName = 'site_styles_vars';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'templateid',
  13. 'styleid',
  14. 'variable',
  15. 'content',
  16. 'description',
  17. );
  18. protected $default = array(
  19. 'uniacid' => '0',
  20. 'templateid' => '',
  21. 'styleid' => '',
  22. 'variable' => '',
  23. 'content' => '',
  24. 'description' => '',
  25. );
  26. public function getAllByStyleid($styleid) {
  27. global $_W;
  28. return $this->query->where('uniacid', $_W['uniacid'])->where('styleid', $styleid)->getall('variable');
  29. }
  30. }