In the StateDocument class, there is a registrationId optional parameter, but it does not seem to be sent to the server in this method:
|
private function doStoreStateDocument($method, StateDocument $document) |
|
{ |
|
$state = $document->getState(); |
|
$this->doStoreDocument( |
|
$method, |
|
'activities/state', |
|
array( |
|
'activityId' => $state->getActivity()->getId()->getValue(), |
|
'agent' => $this->actorSerializer->serializeActor($state->getActor()), |
|
'stateId' => $state->getStateId(), |
|
), |
|
$document |
|
); |
|
} |
Can the registrationId be sent when calling this method?
Spec : https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#23-state-resource
If I understand correctly, this is required for the implementation to be conformant with cmi5 : https://github.com/AICC/CMI-5_Spec_Current/blob/quartz/cmi5_spec.md#101-overview
registration: Registration id representing the LMS learner enrollment in the course. This MUST match the registration used by the LMS at AU launch time.
In the
StateDocumentclass, there is aregistrationIdoptional parameter, but it does not seem to be sent to the server in this method:client/src/Api/StateApiClient.php
Lines 98 to 111 in b39735b
Can the registrationId be sent when calling this method?
Spec : https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#23-state-resource
If I understand correctly, this is required for the implementation to be conformant with cmi5 : https://github.com/AICC/CMI-5_Spec_Current/blob/quartz/cmi5_spec.md#101-overview