/** * delete collection * @access private */ public function delete() { Logger::log("Enter: Group::delete()"); $res = Dal::query("DELETE FROM {groups_users} WHERE group_id = ?", array($this->collection_id)); $res = Dal::query("DELETE FROM {moderation_queue} WHERE collection_id = ?", array($this->collection_id)); // delete all forums in a group MessageBoard::delete_all_in_parent($this->collection_id, 'collection'); parent::delete(); Logger::log("Exit: Group::delete()"); }
/** * Delete album */ public function delete() { Logger::log("Enter: Album::delete"); parent::delete(); // delete from contentcollections_albumtype table /* $sql = "DELETE FROM {contentcollections_albumtype} WHERE contentcollection_id = ? AND album_type_id = ?"; $data = array($this->collection_id, $this->album_type); $res = Dal::query($sql, $data); */ Logger::log("Exit: Album::delete"); return; }