LTI Integration Library 4.10.3
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
CanvasApiTool.php
1<?php
2
3namespace ceLTIc\LTI\ApiHook\canvas;
4
6
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}
Class to implement tool specific functions for LTI messages.
Definition ApiTool.php:15
Class to implement canvas-specific functions for LTI messages.