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

Class to implement Context services for a Moodle tool consumer via its web services. More...

Inheritance diagram for MoodleApiContext:
ApiContext MoodleApi

Public Member Functions

 getMemberships ($withGroups=false)
 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 Context services for a Moodle tool consumer via its web services.

Author
Tony Butler a.but.nosp@m.ler4.nosp@m.@lanc.nosp@m.aste.nosp@m.r.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 MoodleApiContext.php.

Member Function Documentation

◆ getMemberships()

getMemberships (   $withGroups = false)

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 MoodleApiContext.php.

References ApiContext\$context.


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