ILIAS  release_8 Revision v8.25
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}
Class to implement context services for a platform via its proprietary API.
Definition: ApiContext.php:31
setToolSettings(array $settings=array())
Perform a Tool Settings service request.
Definition: ApiContext.php:94
getGroups()
Get course group sets and groups.
Definition: ApiContext.php:63
getMemberships(bool $withGroups)
Get Memberships.
Definition: ApiContext.php:73
getToolSettings(int $mode=Service\ToolSettings::MODE_CURRENT_LEVEL, bool $simple=true)
Get Tool Settings.
Definition: ApiContext.php:84
ILIAS LTI ToolProvider Context $context
Context object.
Definition: ApiContext.php:37
isConfigured()
Check if the API hook has been configured.
Definition: ApiContext.php:53
__construct(\ILIAS\LTI\ToolProvider\Context $context)
Class constructor.
Definition: ApiContext.php:43
Class to represent a platform context.
Definition: Context.php:34
Class to implement a service.
Definition: Service.php:34
const MODE_CURRENT_LEVEL
Settings at current level mode.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: ApiContext.php:19
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
Class ChatMainBarProvider \MainMenu\Provider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...