From ba62ca14b91934d9f5d81ff3a29fcf434acd1fdc Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 12 Oct 2007 04:55:20 +0000 Subject: added abilty to display and delete localplay instances --- lib/class/localplay.class.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'lib/class/localplay.class.php') diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index 6e01bfe0..6f996e3f 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -565,6 +565,18 @@ class Localplay { } // current_instance + /** + * get_instance + * This returns the specified instance + */ + public function get_instance($uid) { + + $data = $this->_player->get_instance($uid); + + return $data; + + } // get_instance + /** * add_instance * This adds a new instance for the current controller type @@ -575,6 +587,16 @@ class Localplay { } // add_instance + /** + * delete_instance + * This removes an instance (it actually calls the players function) + */ + public function delete_instance($instance_uid) { + + $this->_player->delete_instance($instance_uid); + + } // delete_instance + /** * set_active_instance * This sets the active instance of the localplay controller -- cgit