LTI Integration Library  3.1.0
PHP class library for building LTI integrations
ApiContext.php
Go to the documentation of this file.
1 <?php
2 
4 
14 {
15 
21  protected $context = null;
22 
28  public function __construct($context)
29  {
30  $this->context = $context;
31  }
32 
40  public function getMemberships($withGroups)
41  {
42  return false;
43  }
44 
53  public function getToolSettings($mode = Service\ToolSettings::MODE_CURRENT_LEVEL, $simple = true)
54  {
55  return false;
56  }
57 
65  public function setToolSettings($settings = array())
66  {
67  return false;
68  }
69 
70 }
Class to implement a service.
Definition: Service.php:17
const MODE_CURRENT_LEVEL
Settings at current level mode.
getMemberships($withGroups)
Get Memberships.
Definition: ApiContext.php:40
__construct($context)
Class constructor.
Definition: ApiContext.php:28
Class to implement context services for a tool consumer via its proprietary API.
Definition: ApiContext.php:13
getToolSettings($mode=Service\ToolSettings::MODE_CURRENT_LEVEL, $simple=true)
Get Tool Settings.
Definition: ApiContext.php:53
setToolSettings($settings=array())
Perform a Tool Settings service request.
Definition: ApiContext.php:65