ILIAS  release_8 Revision v8.23
ApiContext.php
Go to the documentation of this file.
1 <?php
2 
20 
22 
31 {
38 
43  public function __construct(\ILIAS\LTI\ToolProvider\Context $context)
44  {
45  $this->context = $context;
46  }
47 
53  public function isConfigured(): bool
54  {
55  return true;
56  }
57 
63  public function getGroups(): bool
64  {
65  return false;
66  }
67 
73  public function getMemberships(bool $withGroups)
74  {
75  return false;
76  }
77 
84  public function getToolSettings(int $mode = Service\ToolSettings::MODE_CURRENT_LEVEL, bool $simple = true)
85  {
86  return false;
87  }
88 
94  public function setToolSettings(array $settings = array()): bool
95  {
96  return false;
97  }
98 }
setToolSettings(array $settings=array())
Perform a Tool Settings service request.
Definition: ApiContext.php:94
getToolSettings(int $mode=Service\ToolSettings::MODE_CURRENT_LEVEL, bool $simple=true)
Get Tool Settings.
Definition: ApiContext.php:84
const MODE_CURRENT_LEVEL
Settings at current level mode.
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
Class to implement a service.
Definition: Service.php:33
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: ApiContext.php:19
ILIAS LTI ToolProvider Context $context
Context object.
Definition: ApiContext.php:37
__construct(\ILIAS\LTI\ToolProvider\Context $context)
Class constructor.
Definition: ApiContext.php:43
getGroups()
Get course group sets and groups.
Definition: ApiContext.php:63
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class to implement context services for a platform via its proprietary API.
Definition: ApiContext.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getMemberships(bool $withGroups)
Get Memberships.
Definition: ApiContext.php:73
Class to represent a platform context.
Definition: Context.php:33
isConfigured()
Check if the API hook has been configured.
Definition: ApiContext.php:53