diff options
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r-- | lib/class/localplay.class.php | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index 1cc9eccb..a3492ff3 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -23,7 +23,7 @@ class Localplay { /* Base Variables */ - + var $type; @@ -327,6 +327,25 @@ class Localplay { } // delete + /** + * delete_all + * This removes every song from the players playlist as defined by the delete_all function + * map + */ + function delete_all() { + + + $function = $this->_function_map['delete_all']; + + if (!$this->_player->$function($songs)) { + debug_event('localplay','Error: Unable to delete entire playlist, check ' . $this->type . ' controller','1'); + return false; + } + + return true; + + } // delete_all + } //end localplay class ?> |