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