ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
DataService.php
Go to the documentation of this file.
1 <?php
2 
3 namespace XapiProxy;
4 
6 {
7  public static function initIlias($client_id)
8  {
9  define("CLIENT_ID", $client_id);
10 
11  // see: commit 2844b5d7bfffe08728ecb54c21acf00fd65d5969
12  //
13  // or set clientId Cookie and Context class ilContextScorm: supportsPersistentSessions = true
14  // or set clientId Cookie support own Context with supportsPersistentSessions = true
15  $_GET['client_id'] = $client_id;
16 
17  // Im Plugin war das auskommentiert(?)
18  define('IL_COOKIE_HTTPONLY', true); // Default Value
19  define('IL_COOKIE_EXPIRE', 0);
20  define('IL_COOKIE_PATH', '/');
21  define('IL_COOKIE_DOMAIN', '');
22  require_once('Services/Context/classes/class.ilContext.php');
24  //UK
25  require_once("Services/Init/classes/class.ilInitialisation.php");
27  // Remember original values
28  // $_ORG_SERVER = array(
29  // 'HTTP_HOST' => $_SERVER['HTTP_HOST'],
30  // 'REQUEST_URI' => $_SERVER['REQUEST_URI'],
31  // 'PHP_SELF' => $_SERVER['PHP_SELF'],
32  // );
33  // // Overwrite $_SERVER entries which would confuse ILIAS during initialisation
34  // $_SERVER['REQUEST_URI'] = '';
35  // $_SERVER['PHP_SELF'] = '/index.php';
36  // $_SERVER['HTTP_HOST'] = self::getIniHost();
37  // require_once "./Services/Utilities/classes/class.ilUtil.php";
38  // //ilInitialisation::initIliasIniFile();
39  // ilInitialisation::initClientIniFile();
40  // ilInitialisation::initDatabase();
41 
42  // // Restore original, since this could lead to bad side-effects otherwise
43  // $_SERVER['HTTP_HOST'] = $_ORG_SERVER['HTTP_HOST'];
44  // $_SERVER['REQUEST_URI'] = $_ORG_SERVER['REQUEST_URI'];
45  // $_SERVER['PHP_SELF'] = $_ORG_SERVER['PHP_SELF'];
46  // ilInitialisation::initLog();//UK
47  }
48 }
49 
57 require_once('Services/Init/classes/class.ilInitialisation.php');
59 {
66  public static function initGlobal($a_name, $a_class, $a_source_file = null)
67  {
68  return parent::initGlobal($a_name, $a_class, $a_source_file);
69  }
70 
77  public static function initDatabase()
78  {
79  if (!isset($GLOBALS['ilDB'])) {
80  parent::initGlobal("ilBench", "ilBenchmark", "./Services/Utilities/classes/class.ilBenchmark.php");
81  parent::initDatabase();
82  }
83  }
84 
91  public static function initIliasIniFile()
92  {
93  if (!isset($GLOBALS['ilIliasIniFile'])) {
94  parent::initIliasIniFile();
95  }
96  }
97 
104  public static function initClientIniFile()
105  {
106  if (!isset($GLOBALS['initClientIniFile'])) {
107  parent::initClientIniFile();
108  }
109  }
110 
111  //UK
112  public static function initLog()
113  {
114  if (!isset($GLOBALS['ilLog'])) {
115  parent::initLog();
116  parent::initGlobal("ilAppEventHandler", "ilAppEventHandler", "./Services/EventHandling/classes/class.ilAppEventHandler.php");
117  }
118  }
119 }
$_GET["client_id"]
static initClientIniFile()
Function: initClientIniFile() Derive from protected to public...
const CONTEXT_SCORM
$client_id
Definition: webdav.php:17
static initILIAS()
ilias initialisation
static initDatabase()
Function: initDatabase() Derive from protected to public...
Definition: DataService.php:77
static initIlias($client_id)
Definition: DataService.php:7
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
static init($a_type)
Init context by type.
static initGlobal($a_name, $a_class, $a_source_file=null)
Function; initGlobal($a_name, $a_class, $a_source_file) Derive from protected to public...
Definition: DataService.php:66
Class: ilInitialisation_Public Helper class that derives from ilInitialisation in order to &#39;publish&#39; ...
Definition: DataService.php:58
static initIliasIniFile()
Function: initIliasIniFile() Derive from protected to public...
Definition: DataService.php:91