File tree Expand file tree Collapse file tree 3 files changed +22
-13
lines changed
Expand file tree Collapse file tree 3 files changed +22
-13
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ protected function identifierError($used_identifiers) {
1313 }
1414
1515 protected function validateIdentifiers ($ used_identifiers ) {
16- $ members = $ this ->getProp ('members ' ) ?: null ;
17- $ members = $ members !== null ? $ members ->getValue () : null ;
16+ $ members = $ this ->getPropValue ('member ' ) ?: null ;
1817 $ validateIdentifiers = parent ::validateIdentifiers ($ used_identifiers );
19- return $ validateIdentifiers && $ members === null ;
18+ $ validateMembers = $ members === null || count ($ members ) === 0 ;
19+ return $ validateIdentifiers && $ validateMembers ;
2020 }
2121}
Original file line number Diff line number Diff line change 11<?php namespace Locker \XApi ;
22
33class Members extends Collection {
4- protected $ member_type = 'Locker\XApi\Actor ' ;
4+ protected $ member_type = 'Locker\XApi\Agent ' ;
55}
Original file line number Diff line number Diff line change 11{
2- "actor" :{
3- 4- },
5- "verb" :{
6- "id" :" http://adlnet.gov/expapi/verbs/voided"
7- },
8- "object" :{
9- "id" :" http://kiem.curatr3.com/courses/mentoropleiding"
10- }
2+ "actor" : {
3+ "objectType" : " Group" ,
4+ "account" : {
5+ "homePage" : " http://myaccount.bmj.com" ,
6+ "name" : " hrl"
7+ },
8+ "member" : [
9+ ]
10+ },
11+ "verb" : {
12+ "id" : " http:\/\/ adlnet.gov\/ expapi\/ verbs\/ completed" ,
13+ "display" : {
14+ "en-GB" : " completed"
15+ }
16+ },
17+ "object" : {
18+ "id" : " http:\/\/ localhost\/ moodle\/ mod\/ quiz\/ attempt.php?attempt=48"
19+ }
1120}
You can’t perform that action at this time.
0 commit comments