public static function getLeaderBoard($userId = null, $action = null, $page = 0, $pageCount = 10)
 {
     $result = new FunctionResult();
     $result->success = false;
     if ($action == LeaderBoardUtils::$LEADERBOARD_ACTION_DAILY) {
         $result = LeaderBoardUtils::getDailyLeaderBoard($userId, $action, $page, $pageCount);
     } else {
         if ($action == LeaderBoardUtils::$LEADERBOARD_ACTION_WEEKLY) {
             $result = LeaderBoardUtils::getWeeklyLeaderBoard($userId, $action, $page, $pageCount);
         } else {
             if ($action == LeaderBoardUtils::$LEADERBOARD_ACTION_ALL) {
                 $result = LeaderBoardUtils::getAllLeaderBoard($userId, $action, $page, $pageCount);
             } else {
                 $result->result = "Action is unknown";
             }
         }
     }
     return $result;
 }