Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the GetRegistrationDetail method for rustici.registration.getRegistrationDetail #5

Merged
merged 1 commit into from
Nov 15, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions RegistrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,21 @@ public function GetRegistrationList($regIdFilterRegex, $courseIdFilterRegex)
$regArray = $regData->ConvertToRegistrationDataList($response);
return $regArray;
}

/// <summary>
/// Returns the detail of a registration
/// </summary>
/// <param name="regIdFilterRegex">Optional registration id filter</param>
/// <returns></returns>
public function GetRegistrationDetail($registrationId)
{
$enum = new Enum();
$request = new ServiceRequest($this->_configuration);
$params = array('regid' => $registrationId);
$request->setMethodParams($params);
$response = $request->CallService("rustici.registration.getRegistrationDetail");
// Return the subset of the xml starting with the top <summary>
return $response;
}
/// <summary>
/// Returns a list of registration id's along with their associated course
/// </summary>
Expand Down Expand Up @@ -392,4 +406,4 @@ public function UpdateLearnerInfo($learnerid,$fname,$lname,$newid=null)

}
}
?>
?>