5require_once 
'libs/composer/vendor/autoload.php';
 
   22    $error = array(
'error-code' => 3,
'error-text' => 
'invalid request: missing or empty param request parameter');
 
   29    $param = json_decode(openssl_decrypt(
 
   42    #\XapiProxy\DataService::initIlias($_COOKIE['ilClientId']); 
   46    $error = array(
'error-code' => 
'3',
'error-text' => 
'internal server error');
 
   54        $tokenCmi5Session = 
$token->getCmi5Session();
 
   55        $alreadyReturnedCmi5Session = 
$token->getReturnedForCmi5Session();
 
   56        if ($tokenCmi5Session == $alreadyReturnedCmi5Session) {
 
   61                $error = array(
'error-code' => 
'1',
'error-text' => 
'The authorization token has already been returned.');
 
   65        $token->setReturnedForCmi5Session($tokenCmi5Session);
 
   68    if ($object->isBypassProxyEnabled()) {
 
   69        $authToken = $object->getLrsType()->getBasicAuthWithoutBasic();
 
   78    $error = array(
'error-code' => 
'2',
'error-text' => 
'could not create valid session from token.');
 
   84    header(
'Access-Control-Allow-Origin: ' . 
$_SERVER[
"HTTP_ORIGIN"]);
 
   85    header(
'Access-Control-Allow-Credentials: true');
 
   86    header(
'Content-type:application/json;charset=utf-8');
 
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
static getInstanceByObjIdAndRefIdAndUsrId($objId, $refId, $usrId, $checkValid=true)
const OPENSSL_ENCRYPTION_METHOD
static initILIAS()
ilias initialisation
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
$tokenRestriction
see: https://github.com/AICC/CMI-5_Spec_Current/blob/quartz/cmi5_spec.md#fetch_url response should al...
catch(ilCmiXapiException $e) send($response)