_table = 'forum_grouplevel'; $this->_pk = 'levelid'; parent::__construct(); } public function fetch_all_creditslower_order() { return DB::fetch_all("SELECT * FROM ".DB::table('forum_grouplevel')." WHERE 1 ORDER BY creditslower"); } public function fetch_count() { return DB::result_first("SELECT count(*) FROM ".DB::table('forum_grouplevel')); } public function fetch_by_credits($credits = 0) { return DB::fetch_first("SELECT * FROM %t WHERE creditshigher<=%d AND %d_table, $credits, $credits)); } } ?>