Example #1
0
 /**
  * get_cool_songs
  * This returns all of the song_ids for songs that have happened within
  * the last 'cooldown' for this user.
  */
 public function get_cool_songs()
 {
     // Convert cooldown time to a timestamp in the past
     $cool_time = time() - $this->cooldown * 60;
     $song_ids = Stats::get_object_history($GLOBALS['user']->id, $cool_time);
     return $song_ids;
 }