ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilContextUnitTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilContextUnitTest:
+ Collaboration diagram for ilContextUnitTest:

Static Public Member Functions

static supportsRedirects ()
 Are redirects supported? More...
 
static hasUser ()
 Based on user authentication? More...
 
static usesHTTP ()
 Uses HTTP aka browser. More...
 
static hasHTML ()
 Has HTML output. More...
 
static usesTemplate ()
 Uses template engine. More...
 
static initClient ()
 Init client. More...
 
static doAuthentication ()
 Try authentication. More...
 
static supportsPersistentSessions ()
 Check if persistent sessions are supported false for context cli. More...
 
static supportsPushMessages ()
 Check if push messages are supported, see #0018206. More...
 
static isSessionMainContext ()
 Context that are not only temporary in a session (e.g. More...
 
static modifyHttpPath (string $httpPath)
 A context might modify the ILIAS http path. More...
 
static supportsRedirects ()
 Are redirects supported? More...
 
static hasUser ()
 Based on user authentication? More...
 
static usesHTTP ()
 Uses HTTP aka browser. More...
 
static hasHTML ()
 Has HTML output. More...
 
static usesTemplate ()
 Uses template engine. More...
 
static initClient ()
 Init client. More...
 
static doAuthentication ()
 Try authentication. More...
 
static supportsPersistentSessions ()
 Check if persistent sessions are supported false for context cli. More...
 
static supportsPushMessages ()
 Check if push messages are supported, see #0018206. More...
 
static isSessionMainContext ()
 Context that are not only temporary in a session (e.g. More...
 
static modifyHttpPath (string $httpPath)
 A context might modify the ILIAS http path. More...
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Service context for unit test

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 24 of file ilContextUnitTest.php.

Member Function Documentation

◆ doAuthentication()

static ilContextUnitTest::doAuthentication ( )
static

Try authentication.

Implements ilContextTemplate.

Definition at line 56 of file ilContextUnitTest.php.

56 : bool
57 {
58 return false;
59 }

◆ hasHTML()

static ilContextUnitTest::hasHTML ( )
static

Has HTML output.

Implements ilContextTemplate.

Definition at line 41 of file ilContextUnitTest.php.

41 : bool
42 {
43 return false;
44 }

◆ hasUser()

static ilContextUnitTest::hasUser ( )
static

Based on user authentication?

Implements ilContextTemplate.

Definition at line 31 of file ilContextUnitTest.php.

31 : bool
32 {
33 return true;
34 }

◆ initClient()

static ilContextUnitTest::initClient ( )
static

Init client.

Implements ilContextTemplate.

Definition at line 51 of file ilContextUnitTest.php.

51 : bool
52 {
53 return true;
54 }

◆ isSessionMainContext()

static ilContextUnitTest::isSessionMainContext ( )
static

Context that are not only temporary in a session (e.g.

WAC is, Cron is not)

Implements ilContextTemplate.

Definition at line 71 of file ilContextUnitTest.php.

71 : bool
72 {
73 return true;
74 }

◆ modifyHttpPath()

static ilContextUnitTest::modifyHttpPath ( string  $httpPath)
static

A context might modify the ILIAS http path.

See also
\ilInitialisation::buildHTTPPath

Implements ilContextTemplate.

Definition at line 76 of file ilContextUnitTest.php.

76 : string
77 {
78 return $httpPath;
79 }

◆ supportsPersistentSessions()

static ilContextUnitTest::supportsPersistentSessions ( )
static

Check if persistent sessions are supported false for context cli.

Implements ilContextTemplate.

Definition at line 61 of file ilContextUnitTest.php.

61 : bool
62 {
63 return false;
64 }

◆ supportsPushMessages()

static ilContextUnitTest::supportsPushMessages ( )
static

Check if push messages are supported, see #0018206.

Implements ilContextTemplate.

Definition at line 66 of file ilContextUnitTest.php.

66 : bool
67 {
68 return false;
69 }

◆ supportsRedirects()

static ilContextUnitTest::supportsRedirects ( )
static

Are redirects supported?

Implements ilContextTemplate.

Definition at line 26 of file ilContextUnitTest.php.

26 : bool
27 {
28 return false;
29 }

◆ usesHTTP()

static ilContextUnitTest::usesHTTP ( )
static

Uses HTTP aka browser.

Implements ilContextTemplate.

Definition at line 36 of file ilContextUnitTest.php.

36 : bool
37 {
38 return false;
39 }

◆ usesTemplate()

static ilContextUnitTest::usesTemplate ( )
static

Uses template engine.

Implements ilContextTemplate.

Definition at line 46 of file ilContextUnitTest.php.

46 : bool
47 {
48 return false;
49 }

The documentation for this class was generated from the following file: