/** * This function removes a bitforum entry **/ function expunge() { $ret = FALSE; if ($this->isValid()) { $this->mDb->StartTrans(); $query = "DELETE FROM `" . BIT_DB_PREFIX . "bitforums` WHERE `content_id` = ?"; $result = $this->mDb->query($query, array($this->mContentId)); if (LibertyAttachable::expunge()) { $ret = TRUE; $this->mDb->CompleteTrans(); } else { $this->mDb->RollbackTrans(); } } return $ret; }