_table = 'forum_threadprofile'; $this->_pk = 'id'; parent::__construct(); } public function fetch_all() { return DB::fetch_all('SELECT * FROM %t', array($this->table), $this->_pk); } public function reset_default($tpid) { DB::query("UPDATE %t SET `global`=0", array($this->table)); DB::query("UPDATE %t SET `global`=1 WHERE id=%d", array($this->table, $tpid)); } } ?>