/
LTI_Context_Share_Key.php
41 lines (32 loc) · 1.03 KB
/
LTI_Context_Share_Key.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Class to represent a tool consumer context share key
*
* @deprecated Use LTI_Resource_Link_Share_Key instead
* @see LTI_Resource_Link_Share_Key
*
* @author Stephen P Vickers <stephen@spvsoftwareproducts.com>
* @version 2.5.00
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
*/
namespace Lti;
use Lti\LTI_Resource_Link_Share_Key;
class LTI_Context_Share_Key extends LTI_Resource_Link_Share_Key {
/**
* ID for context being shared.
*
* @deprecated Use LTI_Resource_Link_Share_Key->primary_resource_link_id instead
* @see LTI_Resource_Link_Share_Key::$primary_resource_link_id
*/
public $primary_context_id = NULL;
/**
* Class constructor.
*
* @param LTI_Resource_Link $resource_link Resource_Link object
* @param string $id Value of share key (optional, default is null)
*/
public function __construct($resource_link, $id = NULL) {
parent::__construct($resource_link, $id);
$this->primary_context_id = &$this->primary_resource_link_id;
}
}