LTI Integration Library  3.1.0
PHP class library for building LTI integrations
ToolProxy.php
Go to the documentation of this file.
1 <?php
2 
3 namespace ceLTIc\LTI\MediaType;
4 
7 
16 class ToolProxy
17 {
18 
26  function __construct($toolProvider, $toolProxyService, $secret)
27  {
28  $contexts = array();
29 
30  $this->{'@context'} = array_merge(array('http://purl.imsglobal.org/ctx/lti/v2/ToolProxy'), $contexts);
31  $this->{'@type'} = 'ToolProxy';
32  $this->{'@id'} = "{$toolProxyService->endpoint}";
33  $this->lti_version = 'LTI-2p0';
34  $this->tool_consumer_profile = $toolProvider->consumer->profile->{'@id'};
35  $this->tool_profile = new ToolProfile($toolProvider);
36  $this->security_contract = new SecurityContract($toolProvider, $secret);
37  }
38 
39 }
Class to represent an LTI Tool Proxy media type.
Definition: ToolProxy.php:16
Class to represent an LTI Tool Profile.
Definition: ToolProfile.php:15
Class to represent an LTI Security Contract document.
Class to represent an LTI service object.
__construct($toolProvider, $toolProxyService, $secret)
Class constructor.
Definition: ToolProxy.php:26
Class to represent an LTI Tool Provider.