1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

added clear and play to the basket

This commit is contained in:
Karl 'vollmerk' Vollmer 2007-05-13 08:11:45 +00:00
parent 49c26695c9
commit 1e9f582cf1
4 changed files with 25 additions and 2 deletions

View file

@ -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