LTI Integration Library  3.1.0
PHP class library for building LTI integrations
CanvasApiToolProvider.php
Go to the documentation of this file.
1 <?php
2 
4 
13 //
15 {
16 
17  public function getUserId()
18  {
19  $userId = '';
20  $messageParameters = $this->toolProvider->getMessageParameters();
21  if (isset($messageParameters['custom_canvas_user_id'])) {
22  $userId = trim($messageParameters['custom_canvas_user_id']);
23  }
24 
25  return $userId;
26  }
27 
28 }
Class to implement tool consumer specific functions for LTI messages.
Class to implement canvas-specific functions for LTI messages.