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:
parent
49c26695c9
commit
1e9f582cf1
4 changed files with 25 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue