28 protected static string $type =
"";
52 public static function init(
string $a_type): bool
54 self::$class_name = $a_type;
55 self::$type = $a_type;
64 public static function directCall(
string $a_type,
string $a_method)
68 return call_user_func(array(
$class_name, $a_method));
78 protected static function callContext(
string $a_method, array $args = [])
80 if (!self::$class_name) {
83 return call_user_func_array([self::$class_name, $a_method], $args);
94 if (isset(
$DIC[
"ilCtrl"])) {
95 $ilCtrl =
$DIC->ctrl();
99 if ($ilCtrl && $ilCtrl->isAsynch()) {
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static usesTemplate()
Uses template engine.
static doAuthentication()
Try authentication.
const CONTEXT_SOAP_WITHOUT_CLIENT
const CONTEXT_SOAP_NO_AUTH
static modifyHttpPath(string $httpPath)
static supportsRedirects()
Are redirects supported?
static hasUser()
Based on user authentication?
static isSessionMainContext()
Context that are not only temporary in a session (e.g.
static callContext(string $a_method, array $args=[])
Call current content.
static string $class_name
const CONTEXT_SESSION_REMINDER
static directCall(string $a_type, string $a_method)
Call context method directly without internal handling.
static supportsPersistentSessions()
Check if context supports persistent session handling.
static getType()
Get context type.
static hasHTML()
Has HTML output.
static init(string $a_type)
Init context by type.
static usesHTTP()
Uses HTTP aka browser.
const CONTEXT_LTI_PROVIDER
static initClient()
Init client.
static supportsPushMessages()
Supports push messages.