Class to implement the Course Groups service. More...
Public Member Functions | |
__construct ($context, $groupsEndpoint, $groupSetsEndpoint=null, $limit=null, $pagingMode=false) | |
Class constructor. | |
get ($allowNonSets=false, $user=null, $limit=null) | |
Get the course group sets and groups. | |
getGroupSets ($limit=null) | |
Get the course group sets. | |
getGroups ($allowNonSets=false, $user=null, $limit=null) | |
Get the course groups. | |
![]() | |
__construct ($platform, $endpoint) | |
Class constructor. | |
getConsumer () | |
Get tool consumer. | |
getPlatform () | |
Get platform. | |
getScope () | |
Get access scope. | |
send ($method, $parameters=array(), $body=null) | |
Send a service request. | |
getHttpMessage () | |
Get HttpMessage object for last request. | |
Data Fields | |
const | MEDIA_TYPE_COURSE_GROUP_SETS = 'application/vnd.ims.lti-gs.v1.contextgroupsetcontainer+json' |
Media type for course group sets service. | |
const | MEDIA_TYPE_COURSE_GROUPS = 'application/vnd.ims.lti-gs.v1.contextgroupcontainer+json' |
Media type for course groups service. | |
![]() | |
$unsigned = false | |
Whether service request should be sent unsigned. | |
Static Public Attributes | |
static | $SCOPE = 'https://purl.imsglobal.org/spec/lti-gs/scope/contextgroup.readonly' |
Access scope. | |
static | $defaultLimit = null |
Default limit on size of container to be returned from requests. | |
Additional Inherited Members | |
![]() | |
parseContextsInArray ($contexts, $arr) | |
Parse the JSON for context references. | |
![]() | |
$endpoint = null | |
Service endpoint. | |
$scope = null | |
Service access scope. | |
$mediaType = null | |
Media type of message body. | |
Class to implement the Course Groups service.
Definition at line 15 of file Groups.php.
__construct | ( | $context, | |
$groupsEndpoint, | |||
$groupSetsEndpoint = null , |
|||
$limit = null , |
|||
$pagingMode = false |
|||
) |
Class constructor.
object | $context | The context to which the course groups apply |
string | null | $groupsEndpoint | Service endpoint for course groups |
string | null | $groupSetsEndpoint | Service endpoint for course group sets (optional) |
int | null | $limit | Limit of objects to be returned in each request, null for all |
bool | $pagingMode | True if only a single page should be requested when a limit is set |
Definition at line 90 of file Groups.php.
References Groups\$SCOPE, and Groups\MEDIA_TYPE_COURSE_GROUPS.
get | ( | $allowNonSets = false , |
|
$user = null , |
|||
$limit = null |
|||
) |
Get the course group sets and groups.
bool | $allowNonSets | Include groups which are not part of a set (optional) |
User | null | $user | Limit response to groups for specified user (optional) |
int | null | $limit | Limit on the number of objects to be returned in each request, null for service default (optional) |
Definition at line 112 of file Groups.php.
References Groups\getGroups(), and Groups\getGroupSets().
getGroups | ( | $allowNonSets = false , |
|
$user = null , |
|||
$limit = null |
|||
) |
Get the course groups.
bool | $allowNonSets | Include groups which are not part of a set (optional) |
User | null | $user | Limit response to groups for specified user (optional) |
int | null | $limit | Limit on the number of course groups to be returned in each request, null for service default (optional) |
Definition at line 188 of file Groups.php.
References Groups\$defaultLimit, Service\$endpoint, Groups\MEDIA_TYPE_COURSE_GROUPS, and Service\send().
Referenced by Groups\get().
getGroupSets | ( | $limit = null | ) |
Get the course group sets.
int | null | $limit | Limit on the number of course group sets to be returned in each request, null for service default (optional) |
Definition at line 133 of file Groups.php.
References Groups\$defaultLimit, Service\$endpoint, Groups\MEDIA_TYPE_COURSE_GROUP_SETS, and Service\send().
Referenced by Groups\get().
|
static |
Default limit on size of container to be returned from requests.
Definition at line 40 of file Groups.php.
Referenced by Groups\getGroups(), and Groups\getGroupSets().
|
static |
const MEDIA_TYPE_COURSE_GROUP_SETS = 'application/vnd.ims.lti-gs.v1.contextgroupsetcontainer+json' |
Media type for course group sets service.
Definition at line 21 of file Groups.php.
Referenced by Groups\getGroupSets().
const MEDIA_TYPE_COURSE_GROUPS = 'application/vnd.ims.lti-gs.v1.contextgroupcontainer+json' |
Media type for course groups service.
Definition at line 26 of file Groups.php.
Referenced by Groups\__construct(), and Groups\getGroups().