articlecategory.table.php 636 B

12345678910111213141516171819
  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. defined('IN_IA') or exit('Access Denied');
  7. class ArticlecategoryTable extends We7Table {
  8. protected $tableName = 'article_category';
  9. public function getNewsCategoryLists() {
  10. return $this->query->from($this->tableName)->where('type', 'news')->orderby('displayorder', 'DESC')->getall('id');
  11. }
  12. public function getNoticeCategoryLists() {
  13. return $this->query->from($this->tableName)->where('type', 'notice')->orderby('displayorder', 'DESC')->getall('id');
  14. }
  15. }