Class to implement the Membership service. More...
Public Member Functions | |
__construct ($source, $endpoint, $format=self::MEDIA_TYPE_MEMBERSHIPS_V1, $limit=null, $pagingMode=false) | |
Class constructor. | |
get ($role=null, $limit=null) | |
Get the memberships. | |
getWithGroups ($role=null, $limit=null) | |
Get the memberships. | |
![]() | |
__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_MEMBERSHIPS_V1 = 'application/vnd.ims.lis.v2.membershipcontainer+json' |
Media type for version 1 of Memberships service. | |
const | MEDIA_TYPE_MEMBERSHIPS_NRPS = 'application/vnd.ims.lti-nrps.v2.membershipcontainer+json' |
Media type for Names and Role Provisioning service. | |
![]() | |
$unsigned = false | |
Whether service request should be sent unsigned. | |
Static Public Attributes | |
static | $SCOPE = 'https://purl.imsglobal.org/spec/lti-nrps/scope/contextmembership.readonly' |
Access scope. | |
static | $defaultLimit = 100 |
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 Membership service.
Definition at line 16 of file Membership.php.
__construct | ( | $source, | |
$endpoint, | |||
$format = self::MEDIA_TYPE_MEMBERSHIPS_V1 , |
|||
$limit = null , |
|||
$pagingMode = false |
|||
) |
Class constructor.
object | $source | The object to which the memberships apply (ResourceLink or Context) |
string | $endpoint | Service endpoint |
string | $format | Format to request |
int | null | $limit | Limit of line-items 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 73 of file Membership.php.
References Service\$endpoint, and Membership\$SCOPE.
get | ( | $role = null , |
|
$limit = null |
|||
) |
Get the memberships.
string | null | $role | Role for which memberships are to be requested (optional, default is all roles) |
int | null | $limit | Limit on the number of memberships to be returned in each request, null for service default (optional) |
Definition at line 92 of file Membership.php.
getWithGroups | ( | $role = null , |
|
$limit = null |
|||
) |
Get the memberships.
string | null | $role | Role for which memberships are to be requested (optional, default is all roles) |
int | null | $limit | Limit on the number of memberships to be returned in each request, null for service default (optional) |
Definition at line 105 of file Membership.php.
|
static |
Default limit on size of container to be returned from requests.
Definition at line 37 of file Membership.php.
|
static |
const MEDIA_TYPE_MEMBERSHIPS_NRPS = 'application/vnd.ims.lti-nrps.v2.membershipcontainer+json' |
Media type for Names and Role Provisioning service.
Definition at line 27 of file Membership.php.
const MEDIA_TYPE_MEMBERSHIPS_V1 = 'application/vnd.ims.lis.v2.membershipcontainer+json' |
Media type for version 1 of Memberships service.
Definition at line 22 of file Membership.php.