_table = 'forum_post_tableid'; $this->_pk = 'pid'; parent::__construct(); } public function alter_auto_increment($auto_increment) { return DB::query("ALTER TABLE %t AUTO_INCREMENT=%d", array($this->_table, $auto_increment)); } public function delete_by_lesspid($pid) { return DB::query("DELETE FROM %t WHERE pid<%d", array($this->_table, $pid)); } public function fetch_max_id() { return DB::result_first('SELECT MAX(pid) FROM '.DB::table($this->_table)); } } ?>