public function __construct() { parent::__construct(); $this->set_table(S_DB_PREFIX . 'cat_art'); $this->set_where("cat_lang = '" . S_LANG . "'"); $this->set_order('cat_top'); $this->set_order('cat_index'); $this->set_order('cat_id', 'asc'); }
function __construct($appid = null) { $this->cid = (int) $_GET['cid']; $this->appid = iCMS_APP_ARTICLE; $appid && ($this->appid = $appid); $_GET['appid'] && ($this->appid = (int) $_GET['appid']); $this->category_uri .= '&appid=' . $this->appid; $this->category_furi .= '&appid=' . $this->appid; parent::__construct($this->appid); }
function __construct() { parent::__construct(); $this->db = pc_base::load_model('category_model'); $this->siteid = $this->get_siteid(); }