public static function my_badges($username, $max)
 {
     global $CFG, $DB;
     $params = self::validate_parameters(self::my_badges_parameters(), array('username' => $username, 'max' => $max));
     $auth = new auth_plugin_joomdle();
     $return = $auth->my_badges($username, $max);
     return $return;
 }