summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-13 08:11:45 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-13 08:11:45 +0000
commit1e9f582cf1dba653f45bbc5835fa662a3c163e69 (patch)
tree72b7aa0191f623082bdca0c119330d01496c4d67 /lib
parent49c26695c900f47ef304dd1f7f1ed7184815f343 (diff)
downloadampache-1e9f582cf1dba653f45bbc5835fa662a3c163e69.tar.gz
ampache-1e9f582cf1dba653f45bbc5835fa662a3c163e69.tar.bz2
ampache-1e9f582cf1dba653f45bbc5835fa662a3c163e69.zip
added clear and play to the basket
Diffstat (limited to 'lib')
-rw-r--r--lib/class/tmpplaylist.class.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/class/tmpplaylist.class.php b/lib/class/tmpplaylist.class.php
index 562132fc..b59417d5 100644
--- a/lib/class/tmpplaylist.class.php
+++ b/lib/class/tmpplaylist.class.php
@@ -202,6 +202,19 @@ class tmpPlaylist {
} // count_items
+ /**
+ * clear
+ * This clears all the objects out of a single playlist
+ */
+ public function clear() {
+
+ $sql = "DELETE FROM `tmp_playlist_data` WHERE `tmp_playlist_data`.`tmp_playlist`='" . $this->id . "'";
+ $db_results = Dba::query($sql);
+
+ return true;
+
+ } // clear
+
/**
* create
* This function initializes a new tmpPlaylist it is assoicated with the current