LTI Integration Library  3.1.0
PHP class library for building LTI integrations
CanvasApiResourceLink.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
18 {
19  use CanvasApi;
20 
28  public function getMemberships($withGroups)
29  {
30  $this->sourceObject = $this->resourceLink;
31 
32  $users = $this->get($withGroups);
33 
34  if (!empty($this->resourceLink->getContextId())) {
35  $this->resourceLink->getContext()->groupSets = $this->resourceLink->groupSets;
36  $this->resourceLink->getContext()->groups = $this->resourceLink->groups;
37  }
38 
39  return $users;
40  }
41 
42 }
Class to represent a tool consumer user.
Definition: UserResult.php:15
Class to handle Canvas web service requests.
Definition: CanvasApi.php:17