ILIAS  release_7 Revision v7.30-3-g800a261c036
storeScorm.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
10include_once "Services/Context/classes/class.ilContext.php";
12
13require_once("Services/Init/classes/class.ilInitialisation.php");
15
16include_once 'Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php';
17
18if ((string) $_GET['do'] == "unload") {
19 ilObjSCORMTracking::checkIfAllowed((int) $_GET['package_id'], (int) $_GET['p'], (int) $_GET['hash']);
21} else {
22 global $ilUser;
23 $data = file_get_contents('php://input');
24 $ilUser->setId($data->p);
25 ilObjSCORMTracking::checkIfAllowed((int) $_GET['package_id'], (int) $data->p, (int) $data->hash);
27}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
static init($a_type)
Init context by type.
const CONTEXT_SCORM
static initILIAS()
ilias initialisation
static checkIfAllowed($packageId, $userId, $hash)
$ilUser
Definition: imgupload.php:18
$data
Definition: storeScorm.php:23