LTI Integration Library
4.10.3
PHP class library for building LTI integrations
Loading...
Searching...
No Matches
CanvasApiTool.php
1
<?php
2
3
namespace
ceLTIc\LTI\ApiHook\canvas;
4
5
use
ceLTIc\LTI\ApiHook\ApiTool
;
6
14
class
CanvasApiTool
extends
ApiTool
15
{
16
22
public
function
getUserId
()
23
{
24
$userId =
''
;
25
$messageParameters = $this->tool->getMessageParameters(
true
,
true
,
false
);
26
if
(isset($messageParameters[
'custom_canvas_user_id'
])) {
27
$userId = trim($messageParameters[
'custom_canvas_user_id'
]);
28
}
29
30
return
$userId;
31
}
32
33
}
ceLTIc\LTI\ApiHook\ApiTool
Class to implement tool specific functions for LTI messages.
Definition
ApiTool.php:15
ceLTIc\LTI\ApiHook\canvas\CanvasApiTool
Class to implement canvas-specific functions for LTI messages.
Definition
CanvasApiTool.php:15
ceLTIc\LTI\ApiHook\canvas\CanvasApiTool\getUserId
getUserId()
Get the User ID.
Definition
CanvasApiTool.php:22
Generated on Tue Jun 13 2023 by
Doxygen 1.9.7