ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\HTTP\Services Class Reference

Class Services. More...

+ Inheritance diagram for ILIAS\HTTP\Services:
+ Collaboration diagram for ILIAS\HTTP\Services:

Public Member Functions

 __construct (Container $dic)
 Services constructor. More...
 
 durations ()
 
 wrapper ()
 
 raw ()
 
 request ()
 
 response ()
 
 cookieJar ()
 
 saveRequest (ServerRequestInterface $request)
 @inheritDoc More...
 
 saveResponse (ResponseInterface $response)
 @inheritDoc More...
 
 sendResponse ()
 @inheritDoc More...
 
 close ()
 
 agent ()
 
 durations ()
 
 wrapper ()
 
 request ()
 Returns the current psr-7 server request. More...
 
 response ()
 Returns the current psr-7 response. More...
 
 cookieJar ()
 Returns a cookie jar which has all cookies known by the ILIAS response. More...
 
 saveRequest (ServerRequestInterface $request)
 Saves the given request for further use. More...
 
 saveResponse (ResponseInterface $response)
 Saves the given response for further use. More...
 
 sendResponse ()
 Render the current response hold by ILIAS. More...
 
 close ()
 

Protected Attributes

GlobalHttpState $raw
 
WrapperFactory $wrapper
 
AgentDetermination $agent
 

Detailed Description

Class Services.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch @description This class only implements Services for backport compatibility. This will be removed in a future release of the Service class

Definition at line 37 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\HTTP\Services::__construct ( Container  $dic)

Services constructor.

Definition at line 46 of file Services.php.

47 {
48 $this->raw = new RawHTTPServices(
49 $dic['http.response_sender_strategy'],
50 $dic['http.cookie_jar_factory'],
51 $dic['http.request_factory'],
52 $dic['http.response_factory'],
53 $dic['http.duration_factory']
54 );
55 $this->wrapper = new WrapperFactory($this->raw->request());
56 $this->agent = new AgentDetermination();
57 }
This library is borrowed from the phpGroupWare API http://www.phpgroupware.org/api Modifications made...
$dic
Definition: ltiresult.php:33

References $dic, ILIAS\HTTP\Services\agent(), ILIAS\HTTP\Services\raw(), and ILIAS\HTTP\Services\wrapper().

+ Here is the call graph for this function:

Member Function Documentation

◆ agent()

ILIAS\HTTP\Services::agent ( )

Definition at line 137 of file Services.php.

138 {
139 return $this->agent;
140 }
AgentDetermination $agent
Definition: Services.php:41

References ILIAS\HTTP\Services\$agent.

Referenced by ILIAS\HTTP\Services\__construct().

+ Here is the caller graph for this function:

◆ close()

ILIAS\HTTP\Services::close ( )

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 132 of file Services.php.

132 : void
133 {
134 $this->raw()->close();
135 }

References ILIAS\HTTP\Services\raw().

+ Here is the call graph for this function:

◆ cookieJar()

ILIAS\HTTP\Services::cookieJar ( )
Deprecated:
Please use $this->wrapper() in most cases.
See also
Services::wrapper(); @inheritDoc

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 103 of file Services.php.

103 : CookieJar
104 {
105 return $this->raw()->cookieJar();
106 }

References ILIAS\HTTP\Services\raw().

+ Here is the call graph for this function:

◆ durations()

ILIAS\HTTP\Services::durations ( )

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 59 of file Services.php.

59 : DurationFactory
60 {
61 return $this->raw->durations();
62 }

References ILIAS\HTTP\Services\raw().

+ Here is the call graph for this function:

◆ raw()

◆ request()

ILIAS\HTTP\Services::request ( )
Deprecated:
Please use $this->wrapper() in most cases.
See also
Services::wrapper(); @inheritDoc

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 83 of file Services.php.

83 : ServerRequestInterface
84 {
85 return $this->raw()->request();
86 }

References ILIAS\HTTP\Services\raw().

Referenced by ilWebDAVMountInstructionsGUI\__construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ response()

ILIAS\HTTP\Services::response ( )
Deprecated:
Please use $this->wrapper() in most cases.
See also
Services::wrapper(); @inheritDoc

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 93 of file Services.php.

93 : ResponseInterface
94 {
95 return $this->raw()->response();
96 }

References ILIAS\HTTP\Services\raw().

+ Here is the call graph for this function:

◆ saveRequest()

ILIAS\HTTP\Services::saveRequest ( ServerRequestInterface  $request)

@inheritDoc

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 111 of file Services.php.

111 : void
112 {
113 $this->raw()->saveRequest($request);
114 }

References ILIAS\HTTP\Services\raw().

+ Here is the call graph for this function:

◆ saveResponse()

ILIAS\HTTP\Services::saveResponse ( ResponseInterface  $response)

@inheritDoc

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 119 of file Services.php.

119 : void
120 {
121 $this->raw()->saveResponse($response);
122 }
$response
Definition: xapitoken.php:93

References ILIAS\HTTP\Services\raw().

+ Here is the call graph for this function:

◆ sendResponse()

ILIAS\HTTP\Services::sendResponse ( )

@inheritDoc

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 127 of file Services.php.

127 : void
128 {
129 $this->raw()->sendResponse();
130 }

References ILIAS\HTTP\Services\raw().

+ Here is the call graph for this function:

◆ wrapper()

ILIAS\HTTP\Services::wrapper ( )

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 64 of file Services.php.

65 {
66 return $this->wrapper;
67 }
WrapperFactory $wrapper
Definition: Services.php:40

References ILIAS\HTTP\Services\$wrapper.

Referenced by ILIAS\HTTP\Services\__construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $agent

AgentDetermination ILIAS\HTTP\Services::$agent
protected

Definition at line 41 of file Services.php.

Referenced by ILIAS\HTTP\Services\agent().

◆ $raw

GlobalHttpState ILIAS\HTTP\Services::$raw
protected

Definition at line 39 of file Services.php.

Referenced by ILIAS\HTTP\Services\raw().

◆ $wrapper

WrapperFactory ILIAS\HTTP\Services::$wrapper
protected

Definition at line 40 of file Services.php.

Referenced by ILIAS\HTTP\Services\wrapper().


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