![]() |
LTI Integration Library
3.1.0
PHP class library for building LTI integrations
|
Class to implement the Membership service. More...
Public Member Functions | |
| __construct ($source, $endpoint) | |
| Class constructor. More... | |
| get ($role=null, $limit=0) | |
| Get the memberships. More... | |
Public Member Functions inherited from Service | |
| __construct ($consumer, $endpoint, $mediaType) | |
| Class constructor. More... | |
| send ($method, $parameters=array(), $body=null) | |
| Send a service request. More... | |
| getHTTPMessage () | |
| Get HTTPMessage object for last request. More... | |
Additional Inherited Members | |
Data Fields inherited from Service | |
| $unsigned = false | |
| Whether service request should be sent unsigned. More... | |
Protected Attributes inherited from Service | |
| $endpoint | |
| Service endpoint. More... | |
Class to implement the Membership service.
Definition at line 17 of file Membership.php.
| __construct | ( | $source, | |
| $endpoint | |||
| ) |
Class constructor.
| object | $source | The object to which the memberships apply (ResourceLink or Context) |
| string | $endpoint | Service endpoint |
Definition at line 33 of file Membership.php.
References Service\$endpoint.
| get | ( | $role = null, |
|
$limit = 0 |
|||
| ) |
Get the memberships.
| string | $role | Role for which memberships are to be requested (optional, default is all roles) |
| int | $limit | Limit on the number of memberships to be returned (optional, default is all) |
Delete any old users which were not in the latest list from the tool consumer
Definition at line 48 of file Membership.php.
References UserResult\fromResourceLink(), ToolProvider\ID_SCOPE_RESOURCE, ToolProvider\parseRoles(), and Service\send().