diff options
Diffstat (limited to 'lib/class/localplay.abstract.php')
-rw-r--r-- | lib/class/localplay.abstract.php | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/class/localplay.abstract.php b/lib/class/localplay.abstract.php index d8e21387..d66750a7 100644 --- a/lib/class/localplay.abstract.php +++ b/lib/class/localplay.abstract.php @@ -50,8 +50,21 @@ abstract class localplay_controller { * get_url * This returns the URL for the passed object */ - private function get_url($object) { + public function get_url($object) { + // This can get a little complicated + switch ($object_type) { + case 'random': + + break; + case 'radio': + case 'song': + default: + $url = $object->get_url(Stream::$session); + break; + } // end switch on objecttype + + return $url; } // get_url @@ -60,7 +73,7 @@ abstract class localplay_controller { * This returns the Filename for the passed object, not * always possible */ - private function get_file($object) { + public function get_file($object) { } // get_file |