ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilAuthFactory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
27 {
31  public const CONTEXT_WEB = 1;
32 
39  public const CONTEXT_HTTP = 2;
40 
41 
45  public const CONTEXT_SOAP = 3;
46 
47  public const CONTEXT_CAS = 5;
48 
52  public const CONTEXT_CALENDAR = 6;
53 
54 
58  public const CONTEXT_CALENDAR_TOKEN = 7;
59 
60 
64  public const CONTEXT_ECS = 8;
65 
66 
67 
71  public const CONTEXT_APACHE = 10;
72 
73  private static int $context = self::CONTEXT_WEB;
74 
79  public static function getContext(): int
80  {
81  return self::$context;
82  }
83 
87  public static function setContext(int $a_context): void
88  {
89  self::$context = $a_context;
90  }
91 }
$context
Definition: webdav.php:29
const CONTEXT_HTTP
HTTP Auth used for WebDAV and CalDAV If a special handling for WebDAV or CalDAV is required overwrite...
Authentication frontend factory.
const CONTEXT_SOAP
SOAP based authentication.
const CONTEXT_CALENDAR
Maybe not required.
const CONTEXT_ECS
Calendar authentication with auth token.
static setContext(int $a_context)
set context
const CONTEXT_APACHE
Apache based authentication.
const CONTEXT_CALENDAR_TOKEN
Calendar authentication with auth token.
const CONTEXT_WEB
Web based authentication.