LTI Integration Library  3.1.0
PHP class library for building LTI integrations
MoodleApiContext.php
Go to the documentation of this file.
1 <?php
2 
4 
7 use ceLTIc\LTI\HttpMessage;
8 
19 {
20  use MoodleApi;
21 
29  public function getMemberships($withGroups = false)
30  {
31  $this->sourceObject = $this->context;
32  $this->courseId = $this->context->ltiContextId;
33  $this->courseId = '2';
34 
35  return $this->get($withGroups);
36  }
37 
38 }
Class to implement Context services for a Moodle tool consumer via its web services.
Class to implement context services for a tool consumer via its proprietary API.
Definition: ApiContext.php:13
Class to represent a tool consumer user.
Definition: UserResult.php:15
getMemberships($withGroups=false)
Get Memberships.
Class to handle Moodle web service requests.
Definition: MoodleApi.php:17