This class handles the temporary playlists in ampache, it handles the tmp_playlist and tmp_playlist_data tables, and sneaks out at night to visit user_vote from time to time
This function initializes a new tmpPlaylist it is assoicated with the current session rather then a user, as you could have same user multiple locations
This returns an array of all object_ids currently in this tmpPlaylist. This has gotten a little more complicated because of type, the values are an array
This returns the next object in the tmp_playlist most of the time this will just be the top entry, but if there is a base_playlist and no items in the playlist then it returns a random entry from the base_playlist