ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
LTI\ilLTIConsumerDataService Class Reference
+ Collaboration diagram for LTI\ilLTIConsumerDataService:

Static Public Member Functions

static initIlias ($client_id)
 

Detailed Description

Definition at line 16 of file class.ilLTIConsumerDataService.php.

Member Function Documentation

◆ initIlias()

static LTI\ilLTIConsumerDataService::initIlias (   $client_id)
static

Definition at line 33 of file class.ilLTIConsumerDataService.php.

References $client_id, ilContext\CONTEXT_SCORM, ilContext\init(), and ilInitialisation\initILIAS().

34  {
35  // if (isset($_GET["client_id"]))
36  // {
37  // $cookie_domain = $_SERVER['SERVER_NAME'];
38  // $cookie_path = dirname( $_SERVER['PHP_SELF'] );
39 
40  // /* if ilias is called directly within the docroot $cookie_path
41  // is set to '/' expecting on servers running under windows..
42  // here it is set to '\'.
43  // in both cases a further '/' won't be appended due to the following regex
44  // */
45  // $cookie_path .= (!preg_match("/[\/|\\\\]$/", $cookie_path)) ? "/" : "";
46 
47  // if($cookie_path == "\\") $cookie_path = '/';
48 
49  // $cookie_domain = ''; // Temporary Fix
50 
51  // setcookie("ilClientId", $_GET["client_id"], 0, $cookie_path, $cookie_domain);
52 
53  // $_COOKIE["ilClientId"] = $_GET["client_id"];
54  // }
55 
56 
57 
58  define("CLIENT_ID", $client_id);
59  define('IL_COOKIE_HTTPONLY', true); // Default Value
60  define('IL_COOKIE_EXPIRE', 0);
61  define('IL_COOKIE_PATH', '/');
62  define('IL_COOKIE_DOMAIN', '');
63  require_once('Services/Context/classes/class.ilContext.php');
65  //UK
66  require_once("Services/Init/classes/class.ilInitialisation.php");
68  // Remember original values
69  // $_ORG_SERVER = array(
70  // 'HTTP_HOST' => $_SERVER['HTTP_HOST'],
71  // 'REQUEST_URI' => $_SERVER['REQUEST_URI'],
72  // 'PHP_SELF' => $_SERVER['PHP_SELF'],
73  // );
74  // // Overwrite $_SERVER entries which would confuse ILIAS during initialisation
75  // $_SERVER['REQUEST_URI'] = '';
76  // $_SERVER['PHP_SELF'] = '/index.php';
77  // $_SERVER['HTTP_HOST'] = self::getIniHost();
78  // require_once "./Services/Utilities/classes/class.ilUtil.php";
79  // //ilInitialisation::initIliasIniFile();
80  // ilInitialisation::initClientIniFile();
81  // ilInitialisation::initDatabase();
82 
83  // // Restore original, since this could lead to bad side-effects otherwise
84  // $_SERVER['HTTP_HOST'] = $_ORG_SERVER['HTTP_HOST'];
85  // $_SERVER['REQUEST_URI'] = $_ORG_SERVER['REQUEST_URI'];
86  // $_SERVER['PHP_SELF'] = $_ORG_SERVER['PHP_SELF'];
87  // ilInitialisation::initLog();//UK
88  }
const CONTEXT_SCORM
static initILIAS()
ilias initialisation
static init($a_type)
Init context by type.
$client_id
+ Here is the call graph for this function:

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