ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ILIAS\WebAccessChecker Namespace Reference

Data Structures

interface  PathType
 Interface PathType. More...
 

Functions

static http ()
 Fetches the global http state from ILIAS. More...
 

Variables

trait HttpServiceAware
 Trait HttpServiceAware. More...
 

Function Documentation

◆ http()

static ILIAS\WebAccessChecker\http ( )
staticprotected

Fetches the global http state from ILIAS.

The GlobalHttpStore is stored after the first invocation.

Returns
GlobalHttpState The current http global state of ILIAS.
Since
5.3

Definition at line 37 of file HttpServiceAware.php.

References $GLOBALS, and $http.

38  {
39  if (self::$http === null) {
40  self::$http = $GLOBALS['DIC']['http'];
41  }
42 
43  return self::$http;
44  }
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
$http
Definition: raiseError.php:7

Variable Documentation

◆ HttpServiceAware

trait ILIAS::WebAccessChecker\HttpServiceAware
Initial value:
{
private static $http
$http
Definition: raiseError.php:7

Trait HttpServiceAware.

This trait provide a convenient way to consume the global http state and aids to reduce code duplication.

Please only use this trait if you need the global http state from a static context! Otherwise consider to pass the http global state via constructor (DI).

Author
Nicolas Schäfli ns@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
1.0
Since
5.3

Definition at line 24 of file HttpServiceAware.php.