Class to implement context services for a platform via its proprietary API.  
 More...
Class to implement context services for a platform via its proprietary API. 
- Author
- Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com 
- Copyright
- SPV Software Products 
- Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
◆ __construct()
      
        
          | ceLTIc\LTI\ApiHook\ApiContext::__construct | ( | Context | $context | ) |  | 
      
 
 
◆ getGroups()
      
        
          | bool ceLTIc\LTI\ApiHook\ApiContext::getGroups | ( |  | ) |  | 
      
 
 
◆ getMemberships()
      
        
          | array bool ceLTIc\LTI\ApiHook\ApiContext::getMemberships | ( | bool | $withGroups | ) |  | 
      
 
 
◆ getToolSettings()
      
        
          | array bool ceLTIc\LTI\ApiHook\ApiContext::getToolSettings | ( | ?ToolSettingsMode | $mode = null, | 
        
          |  |  | bool | $simple = true ) | 
      
 
Get Tool Settings. 
- Parameters
- 
  
    | ToolSettingsMode | null | $mode | Mode for request (optional, default is current level only) |  | bool | $simple | True if all the simple media type is to be used (optional, default is true) |  
 
- Returns
- array|bool The array of settings if successful, otherwise false 
 
 
◆ isConfigured()
      
        
          | bool ceLTIc\LTI\ApiHook\ApiContext::isConfigured | ( |  | ) |  | 
      
 
Check if the API hook has been configured. 
- Returns
- bool True if the API hook has been configured 
 
 
◆ setToolSettings()
      
        
          | bool ceLTIc\LTI\ApiHook\ApiContext::setToolSettings | ( | array | $settings = [] | ) |  | 
      
 
Perform a Tool Settings service request. 
- Parameters
- 
  
    | array | $settings | An associative array of settings (optional, default is none) |  
 
- Returns
- bool True if action was successful, otherwise false 
 
 
◆ $context
  
  | 
        
          | Context ceLTIc\LTI\ApiHook\ApiContext::$context |  | protected |