diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-19 07:40:48 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-19 07:40:48 +0000 |
commit | f4d94f034e6ca26d37244028d8ccb08ddbab0e8c (patch) | |
tree | 43e6c44483218ec55d2d896765fcdcf6be54fbea /lib/class/access.class.php | |
parent | 9c15441ab4b0359ccd0c7e03f06b021be4e53f33 (diff) | |
download | ampache-f4d94f034e6ca26d37244028d8ccb08ddbab0e8c.tar.gz ampache-f4d94f034e6ca26d37244028d8ccb08ddbab0e8c.tar.bz2 ampache-f4d94f034e6ca26d37244028d8ccb08ddbab0e8c.zip |
some inital work on an api for amarok, tweaked stream class a bit, think theres still a bug with some playlist methods, also need to confirm problem with IE
Diffstat (limited to 'lib/class/access.class.php')
-rw-r--r-- | lib/class/access.class.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/class/access.class.php b/lib/class/access.class.php index e814ade6..379ee626 100644 --- a/lib/class/access.class.php +++ b/lib/class/access.class.php @@ -314,6 +314,33 @@ class Access { } // get_type_name + /** + * session_exists + * This checks to see if the specified session of the specified type + * exists, it also provides an array of key'd data that may be required + * based on the type + */ + public static function session_exists($data,$key,$type) { + + // Switch on the type they pass + switch ($type) { + case 'api': + + break; + case 'stream': + + break; + case 'interface': + + break; + default: + return false; + break; + } // type + + + } // session_exists + } //end of access class ?> |