LTI Integration Library  3.1.0
PHP class library for building LTI integrations
CanvasApiContext Class Reference

Class to implement Resource Link services for a Canvas tool consumer via its proprietary API. More...

Inheritance diagram for CanvasApiContext:
ApiContext CanvasApi

Public Member Functions

 getMemberships ($withGroups)
 Get memberships. More...
 
- Public Member Functions inherited from ApiContext
 __construct ($context)
 Class constructor. More...
 
 getMemberships ($withGroups)
 Get Memberships. More...
 
 getToolSettings ($mode=Service\ToolSettings::MODE_CURRENT_LEVEL, $simple=true)
 Get Tool Settings. More...
 
 setToolSettings ($settings=array())
 Perform a Tool Settings service request. More...
 

Additional Inherited Members

- Protected Attributes inherited from ApiContext
 $context = null
 Context object. More...
 

Detailed Description

Class to implement Resource Link services for a Canvas tool consumer via its proprietary API.

Author
Simon Booth s.p.b.nosp@m.ooth.nosp@m.@stir.nosp@m..ac..nosp@m.uk
Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
Version
3.1.0
Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3

Definition at line 18 of file CanvasApiContext.php.

Member Function Documentation

◆ getMemberships()

getMemberships (   $withGroups)

Get memberships.

Parameters
bool$withGroupsTrue is group information is to be requested as well
Returns
mixed Array of UserResult objects or False if the request was not successful

Definition at line 28 of file CanvasApiContext.php.

References ApiContext\$context.


The documentation for this class was generated from the following file: