ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
HttpServiceAware.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 namespace ILIAS\FileDelivery;
6 
8 
9 /******************************************************************************
10  *
11  * This file is part of ILIAS, a powerful learning management system.
12  *
13  * ILIAS is licensed with the GPL-3.0, you should have received a copy
14  * of said license along with the source code.
15  *
16  * If this is not the case or you just want to try ILIAS, you'll find
17  * us at:
18  * https://www.ilias.de
19  * https://github.com/ILIAS-eLearning
20  *
21  *****************************************************************************/
37 trait HttpServiceAware
38 {
42  private static $http;
43 
44 
54  protected static function http()
55  {
56  if (self::$http === null) {
57  self::$http = $GLOBALS['DIC']['http'];
58  }
59 
60  return self::$http;
61  }
62 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
$http
Definition: raiseError.php:7
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Delivery.php:21