ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilContextSaml.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Context/interfaces/interface.ilContextTemplate.php';
5 
10 {
14  public static function supportsRedirects()
15  {
16  return true;
17  }
18 
22  public static function hasUser()
23  {
24  return true;
25  }
26 
30  public static function usesHTTP()
31  {
32  return true;
33  }
34 
38  public static function hasHTML()
39  {
40  return true;
41  }
42 
46  public static function usesTemplate()
47  {
48  return true;
49  }
50 
54  public static function initClient()
55  {
56  return true;
57  }
58 
62  public static function doAuthentication()
63  {
64  return true;
65  }
66 
70  public static function supportsPersistentSessions()
71  {
72  return true;
73  }
74 
80  public static function supportsPushMessages()
81  {
82  return false;
83  }
84 
88  public static function isSessionMainContext()
89  {
90  return false;
91  }
92 
96  public static function modifyHttpPath(string $httpPath) : string
97  {
98  if (strpos($httpPath, '/Services/Saml/lib/') !== false && strpos($httpPath, '/metadata.php') === false) {
99  return substr($httpPath, 0, strpos($httpPath, '/Services/Saml/lib/'));
100  }
101 
102  return $httpPath;
103  }
104 }
static supportsPushMessages()
Supports push messages.
Class ilContextSaml.
static modifyHttpPath(string $httpPath)
static hasHTML()
Has HTML output.bool
static isSessionMainContext()
Context that are not only temporary in a session (e.g.WAC is, Cron is not)bool
static usesTemplate()
Uses template engine.bool
Interface ilContextTemplate.
static initClient()
Init client.bool
static supportsRedirects()
Are redirects supported?bool
static supportsPersistentSessions()
Check if persistent sessions are supported false for context cli.
static hasUser()
Based on user authentication?bool
static doAuthentication()
Try authentication.bool
static usesHTTP()
Uses HTTP aka browser.bool