diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-04-06 06:16:02 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-04-06 06:16:02 +0000 |
commit | 065e228c184aa3043dbb93c701d8c2a8cfb05b1e (patch) | |
tree | e827b0a4edb07957a8a0b80edfe5edccb698f6e5 /lib/class/localplay.class.php | |
parent | 3b0791a0e038937b6d1dab49e6599aff5f48a4ab (diff) | |
download | ampache-065e228c184aa3043dbb93c701d8c2a8cfb05b1e.tar.gz ampache-065e228c184aa3043dbb93c701d8c2a8cfb05b1e.tar.bz2 ampache-065e228c184aa3043dbb93c701d8c2a8cfb05b1e.zip |
added a new function to song and added a untested mpd controller
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r-- | lib/class/localplay.class.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index 4c96f559..9e9cabaf 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -65,6 +65,28 @@ class Localplay { /** + * _load_player + * This function attempts to load the player class that localplay + * Will interface with in order to make all this magical stuf work + * all LocalPlay modules should be located in /modules/<name>/<name>.class.php + */ + function _load_player() { + + $filename = conf('prefix') . '/modules/localplay/' . $this->type . '.controller.php'; + $include = require_once ($filename); + + if (!$include) { + /* Throw Error Here */ + + } // include + else { + $class_name = $this->type; + $this->_player = new $class_name(); + } + + } // _load_player + + /** * has_function * This is used to check the function map and see if the current * player type supports the indicated function. |