/** * Gets where this album ranks overall, for its year, and for its decade. This is really just a wrapper. * @param int $GroupID GroupID of the album * @param int $Year Year it was released * @return array ('overall'=><overall rank>, 'year'=><rank for its year>, 'decade'=><rank for its decade>) */ public static function get_ranking($GroupID, $Year) { $GroupID = (int) $GroupID; $Year = (int) $Year; if ($GroupID <= 0 || $Year <= 0) { return false; } return array('overall' => Votes::get_rank_all($GroupID), 'year' => Votes::get_rank_year($GroupID, $Year), 'decade' => Votes::get_rank_decade($GroupID, $Year)); }