summaryrefslogtreecommitdiffstats
path: root/lib/class/user.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-13 00:32:57 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-13 00:32:57 +0000
commit6eac7541290086509cf1531a48ab2734ac48081a (patch)
treea4e1350fdcf765fb8a9d85ff0c513a296fdec946 /lib/class/user.class.php
parent2939f419e15589ab9fb73c6fd197e577238c6677 (diff)
downloadampache-6eac7541290086509cf1531a48ab2734ac48081a.tar.gz
ampache-6eac7541290086509cf1531a48ab2734ac48081a.tar.bz2
ampache-6eac7541290086509cf1531a48ab2734ac48081a.zip
added in the playlist bar, and the auto-loading of a tmp playlist per session
Diffstat (limited to 'lib/class/user.class.php')
-rw-r--r--lib/class/user.class.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/class/user.class.php b/lib/class/user.class.php
index c446e4d6..990a27ce 100644
--- a/lib/class/user.class.php
+++ b/lib/class/user.class.php
@@ -83,6 +83,20 @@ class User {
} // _get_info
/**
+ * load_playlist
+ * This is called once per page load it makes sure that this session
+ * has a tmp_playlist, creating it if it doesn't, then sets $this->playlist
+ * as a tmp_playlist object that can be fiddled with later on
+ */
+ public function load_playlist() {
+
+ $session_id = session_id();
+
+ $this->playlist = tmpPlaylist::get_from_session($session_id);
+
+ } // load_playlist
+
+ /**
* get_from_username
* This returns a built user from a username. This is a
* static function so it doesn't require an instance