diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-05-01 07:22:07 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-05-01 07:22:07 +0000 |
commit | a02b8ce20746ef5449e661ac8ffdb4e1974e65c2 (patch) | |
tree | db1e0b2a6ef1b9fa7bfaa65e2fdb8eb22286f063 /lib/class/localplay.class.php | |
parent | af554e6296eff9ee08ad59597f27378e4b2a8db8 (diff) | |
download | ampache-a02b8ce20746ef5449e661ac8ffdb4e1974e65c2.tar.gz ampache-a02b8ce20746ef5449e661ac8ffdb4e1974e65c2.tar.bz2 ampache-a02b8ce20746ef5449e661ac8ffdb4e1974e65c2.zip |
fixed clean, added lang to installer (thx ros) and cleaned up catalog display a bit and mojoed lang list
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 ?> |