Skip to content

Commit

Permalink
Update RegistrationService.php
Browse files Browse the repository at this point in the history
Add the GetRegistrationDetail method for rustici.registration.getRegistrationDetail
  • Loading branch information
samthill committed Nov 2, 2012
1 parent 51e4dbe commit 11a94e4
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions RegistrationService.php
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)

}
}
?>
?>

0 comments on commit 11a94e4

Please sign in to comment.