This repository has been archived by the owner on Jun 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Services
Stephen Vickers edited this page May 18, 2016
·
1 revision
The class library provides support for the following services:
- Outcomes (Basic Outcomes service in LTI 1.1 and the unofficial Outcomes extension service)
- Tool Settings (including the unofficial Setting extension service)
- Membership (including the unofficial Memberships extension service)
In order to submit a service request, the related object is required. For example, the Outcomes service requires the related resource link instance. If the service requests are to be made during a user's session, then retaining the primary key of the resource link in a session variable is recommended. This would then allow the resource link instance to be opened as follows:
$resource_link = ToolProvider\ResourceLink::fromRecordId($_SESSION['resource_link_pk'], $db_connector);
Otherwise using the consumer key and resource link ID is likely to be the most convenient mechansim:
$consumer = new ToolProvider\ToolConsumer($consumer_key, $db_connector);
$resource_link = ToolProvider\ResourceLink::fromConsumer($consumer, $resource_link_id);
© 2016 IMS Global Learning Consortium Inc. All Rights Reserved. Trademark Policy - (www.imsglobal.org/trademarks)