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
3
namespace
ceLTIc\LTI\ApiHook\moodle
;
4
5
use
ceLTIc\LTI\ApiHook\ApiContext
;
6
use
ceLTIc\LTI\UserResult
;
7
use ceLTIc\LTI\HttpMessage;
8
18
class
MoodleApiContext
extends
ApiContext
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
}
ceLTIc\LTI\ApiHook\moodle\MoodleApiContext
Class to implement Context services for a Moodle tool consumer via its web services.
Definition:
MoodleApiContext.php:18
ceLTIc\LTI\ApiHook\ApiContext
Class to implement context services for a tool consumer via its proprietary API.
Definition:
ApiContext.php:13
ceLTIc\LTI\UserResult
Class to represent a tool consumer user.
Definition:
UserResult.php:15
ceLTIc\LTI\ApiHook\moodle\MoodleApiContext\getMemberships
getMemberships($withGroups=false)
Get Memberships.
Definition:
MoodleApiContext.php:28
ceLTIc\LTI\ApiHook\ApiContext\$context
$context
Context object.
Definition:
ApiContext.php:21
ceLTIc\LTI\ApiHook\moodle
Definition:
MoodleApi.php:3
ceLTIc\LTI\ApiHook\moodle\MoodleApi
Class to handle Moodle web service requests.
Definition:
MoodleApi.php:17
Generated on Wed Mar 13 2019 by
Doxygen 1.8.15