LTI Integration Library 4.10.3
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
ToolProxy.php
1<?php
2
3namespace ceLTIc\LTI\MediaType;
4
7
16{
17
23 public $lti_version = null;
24
31
37 public $tool_profile = null;
38
44 public $security_contract = null;
45
53 function __construct($tool, $toolProxyService, $secret)
54 {
55 $contexts = array();
56
57 $this->{'@context'} = array_merge(array('http://purl.imsglobal.org/ctx/lti/v2/ToolProxy'), $contexts);
58 $this->{'@type'} = 'ToolProxy';
59 $this->{'@id'} = "{$toolProxyService->endpoint}";
60 $this->lti_version = 'LTI-2p0';
61 $this->tool_consumer_profile = $tool->platform->profile->{'@id'};
62 $this->tool_profile = new ToolProfile($tool);
63 $this->security_contract = new SecurityContract($tool, $secret);
64 }
65
66}
Class to represent an LTI Security Contract document.
Class to represent an LTI Tool Profile.
Class to represent an LTI Tool Proxy media type.
Definition ToolProxy.php:16
$security_contract
Security contract.
Definition ToolProxy.php:44
$tool_consumer_profile
Endpoint for tool consumer profile.
Definition ToolProxy.php:30
__construct($tool, $toolProxyService, $secret)
Class constructor.
Definition ToolProxy.php:53
Class to represent an LTI service object.
Class to represent an LTI Tool.
Definition Tool.php:24