ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ILIAS\WebDAV\Request\LegacyRequestProxy Class Reference
+ Inheritance diagram for ILIAS\WebDAV\Request\LegacyRequestProxy:
+ Collaboration diagram for ILIAS\WebDAV\Request\LegacyRequestProxy:

Public Member Functions

 getProtocolVersion ()
 
 withProtocolVersion (string $version)
 
 getHeaders ()
 
 hasHeader (string $name)
 
 getHeader (string $name)
 
 getHeaderLine (string $name)
 
 withHeader (string $name, $value)
 
 withAddedHeader (string $name, $value)
 
 withoutHeader (string $name)
 
 getBody ()
 
 withBody (StreamInterface $body)
 
 getRequestTarget ()
 
 withRequestTarget (string $requestTarget)
 
 getMethod ()
 
 withMethod (string $method)
 
 getUri ()
 
 withUri (UriInterface $uri, bool $preserveHost=false)
 
 getServerParams ()
 
 getCookieParams ()
 
 withCookieParams (array $cookies)
 
 getQueryParams ()
 
 withQueryParams (array $query)
 
 getUploadedFiles ()
 
 withUploadedFiles (array $uploadedFiles)
 
 getParsedBody ()
 
 withParsedBody ($data)
 
 getAttributes ()
 
 getAttribute (string $name, $default=null)
 
 withAttribute (string $name, $value)
 
 withoutAttribute (string $name)
 

Private Member Functions

 request ()
 

Detailed Description

Definition at line 29 of file LegacyRequestProxy.php.

Member Function Documentation

◆ getAttribute()

ILIAS\WebDAV\Request\LegacyRequestProxy::getAttribute ( string  $name,
  $default = null 
)

Definition at line 175 of file LegacyRequestProxy.php.

176 {
177 return $this->request()->getAttribute($name, $default);
178 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getAttributes()

ILIAS\WebDAV\Request\LegacyRequestProxy::getAttributes ( )

Definition at line 170 of file LegacyRequestProxy.php.

170 : array
171 {
172 return $this->request()->getAttributes();
173 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getBody()

ILIAS\WebDAV\Request\LegacyRequestProxy::getBody ( )

Definition at line 85 of file LegacyRequestProxy.php.

85 : StreamInterface
86 {
87 return $this->request()->getBody();
88 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getCookieParams()

ILIAS\WebDAV\Request\LegacyRequestProxy::getCookieParams ( )

Definition at line 130 of file LegacyRequestProxy.php.

130 : array
131 {
132 return $this->request()->getCookieParams();
133 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getHeader()

ILIAS\WebDAV\Request\LegacyRequestProxy::getHeader ( string  $name)

Definition at line 60 of file LegacyRequestProxy.php.

60 : array
61 {
62 return $this->request()->getHeader($name);
63 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getHeaderLine()

ILIAS\WebDAV\Request\LegacyRequestProxy::getHeaderLine ( string  $name)

Definition at line 65 of file LegacyRequestProxy.php.

65 : string
66 {
67 return $this->request()->getHeaderLine($name);
68 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getHeaders()

ILIAS\WebDAV\Request\LegacyRequestProxy::getHeaders ( )

Definition at line 50 of file LegacyRequestProxy.php.

50 : array
51 {
52 return $this->request()->getHeaders();
53 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getMethod()

ILIAS\WebDAV\Request\LegacyRequestProxy::getMethod ( )

Definition at line 105 of file LegacyRequestProxy.php.

105 : string
106 {
107 return $this->request()->getMethod();
108 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getParsedBody()

ILIAS\WebDAV\Request\LegacyRequestProxy::getParsedBody ( )

Definition at line 160 of file LegacyRequestProxy.php.

161 {
162 return $this->request()->getParsedBody();
163 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getProtocolVersion()

ILIAS\WebDAV\Request\LegacyRequestProxy::getProtocolVersion ( )

Definition at line 40 of file LegacyRequestProxy.php.

40 : string
41 {
42 return $this->request()->getProtocolVersion();
43 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getQueryParams()

ILIAS\WebDAV\Request\LegacyRequestProxy::getQueryParams ( )

Definition at line 140 of file LegacyRequestProxy.php.

140 : array
141 {
142 return $this->request()->getQueryParams();
143 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getRequestTarget()

ILIAS\WebDAV\Request\LegacyRequestProxy::getRequestTarget ( )

Definition at line 95 of file LegacyRequestProxy.php.

95 : string
96 {
97 return $this->request()->getRequestTarget();
98 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getServerParams()

ILIAS\WebDAV\Request\LegacyRequestProxy::getServerParams ( )

Definition at line 125 of file LegacyRequestProxy.php.

125 : array
126 {
127 return $this->request()->getServerParams();
128 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getUploadedFiles()

ILIAS\WebDAV\Request\LegacyRequestProxy::getUploadedFiles ( )

Definition at line 150 of file LegacyRequestProxy.php.

150 : array
151 {
152 return $this->request()->getUploadedFiles();
153 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ getUri()

ILIAS\WebDAV\Request\LegacyRequestProxy::getUri ( )

Definition at line 115 of file LegacyRequestProxy.php.

115 : UriInterface
116 {
117 return $this->request()->getUri();
118 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ hasHeader()

ILIAS\WebDAV\Request\LegacyRequestProxy::hasHeader ( string  $name)

Definition at line 55 of file LegacyRequestProxy.php.

55 : bool
56 {
57 return $this->request()->hasHeader($name);
58 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ request()

ILIAS\WebDAV\Request\LegacyRequestProxy::request ( )
private

Definition at line 31 of file LegacyRequestProxy.php.

31 : ServerRequestInterface
32 {
33 $dic = $GLOBALS['DIC'] ?? null;
34 if ($dic === null) {
35 throw new \RuntimeException('Global DIC is not initialized; cannot access HTTP request.');
36 }
37 return $dic->http()->request();
38 }
$dic
Definition: ltiresult.php:33
$GLOBALS["DIC"]
Definition: wac.php:54

References $dic, and $GLOBALS.

Referenced by ILIAS\WebDAV\Request\LegacyRequestProxy\getAttribute(), ILIAS\WebDAV\Request\LegacyRequestProxy\getAttributes(), ILIAS\WebDAV\Request\LegacyRequestProxy\getBody(), ILIAS\WebDAV\Request\LegacyRequestProxy\getCookieParams(), ILIAS\WebDAV\Request\LegacyRequestProxy\getHeader(), ILIAS\WebDAV\Request\LegacyRequestProxy\getHeaderLine(), ILIAS\WebDAV\Request\LegacyRequestProxy\getHeaders(), ILIAS\WebDAV\Request\LegacyRequestProxy\getMethod(), ILIAS\WebDAV\Request\LegacyRequestProxy\getParsedBody(), ILIAS\WebDAV\Request\LegacyRequestProxy\getProtocolVersion(), ILIAS\WebDAV\Request\LegacyRequestProxy\getQueryParams(), ILIAS\WebDAV\Request\LegacyRequestProxy\getRequestTarget(), ILIAS\WebDAV\Request\LegacyRequestProxy\getServerParams(), ILIAS\WebDAV\Request\LegacyRequestProxy\getUploadedFiles(), ILIAS\WebDAV\Request\LegacyRequestProxy\getUri(), ILIAS\WebDAV\Request\LegacyRequestProxy\hasHeader(), ILIAS\WebDAV\Request\LegacyRequestProxy\withAddedHeader(), ILIAS\WebDAV\Request\LegacyRequestProxy\withAttribute(), ILIAS\WebDAV\Request\LegacyRequestProxy\withBody(), ILIAS\WebDAV\Request\LegacyRequestProxy\withCookieParams(), ILIAS\WebDAV\Request\LegacyRequestProxy\withHeader(), ILIAS\WebDAV\Request\LegacyRequestProxy\withMethod(), ILIAS\WebDAV\Request\LegacyRequestProxy\withoutAttribute(), ILIAS\WebDAV\Request\LegacyRequestProxy\withoutHeader(), ILIAS\WebDAV\Request\LegacyRequestProxy\withParsedBody(), ILIAS\WebDAV\Request\LegacyRequestProxy\withProtocolVersion(), ILIAS\WebDAV\Request\LegacyRequestProxy\withQueryParams(), ILIAS\WebDAV\Request\LegacyRequestProxy\withRequestTarget(), ILIAS\WebDAV\Request\LegacyRequestProxy\withUploadedFiles(), and ILIAS\WebDAV\Request\LegacyRequestProxy\withUri().

+ Here is the caller graph for this function:

◆ withAddedHeader()

ILIAS\WebDAV\Request\LegacyRequestProxy::withAddedHeader ( string  $name,
  $value 
)

Definition at line 75 of file LegacyRequestProxy.php.

75 : MessageInterface
76 {
77 return $this->request()->withAddedHeader($name, $value);
78 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withAttribute()

ILIAS\WebDAV\Request\LegacyRequestProxy::withAttribute ( string  $name,
  $value 
)

Definition at line 180 of file LegacyRequestProxy.php.

180 : ServerRequestInterface
181 {
182 return $this->request()->withAttribute($name, $value);
183 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withBody()

ILIAS\WebDAV\Request\LegacyRequestProxy::withBody ( StreamInterface  $body)

Definition at line 90 of file LegacyRequestProxy.php.

90 : MessageInterface
91 {
92 return $this->request()->withBody($body);
93 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withCookieParams()

ILIAS\WebDAV\Request\LegacyRequestProxy::withCookieParams ( array  $cookies)

Definition at line 135 of file LegacyRequestProxy.php.

135 : ServerRequestInterface
136 {
137 return $this->request()->withCookieParams($cookies);
138 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withHeader()

ILIAS\WebDAV\Request\LegacyRequestProxy::withHeader ( string  $name,
  $value 
)

Definition at line 70 of file LegacyRequestProxy.php.

70 : MessageInterface
71 {
72 return $this->request()->withHeader($name, $value);
73 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withMethod()

ILIAS\WebDAV\Request\LegacyRequestProxy::withMethod ( string  $method)

Definition at line 110 of file LegacyRequestProxy.php.

110 : RequestInterface
111 {
112 return $this->request()->withMethod($method);
113 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withoutAttribute()

ILIAS\WebDAV\Request\LegacyRequestProxy::withoutAttribute ( string  $name)

Definition at line 185 of file LegacyRequestProxy.php.

185 : ServerRequestInterface
186 {
187 return $this->request()->withoutAttribute($name);
188 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withoutHeader()

ILIAS\WebDAV\Request\LegacyRequestProxy::withoutHeader ( string  $name)

Definition at line 80 of file LegacyRequestProxy.php.

80 : MessageInterface
81 {
82 return $this->request()->withoutHeader($name);
83 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withParsedBody()

ILIAS\WebDAV\Request\LegacyRequestProxy::withParsedBody (   $data)

Definition at line 165 of file LegacyRequestProxy.php.

165 : ServerRequestInterface
166 {
167 return $this->request()->withParsedBody($data);
168 }

References $data, and ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withProtocolVersion()

ILIAS\WebDAV\Request\LegacyRequestProxy::withProtocolVersion ( string  $version)

Definition at line 45 of file LegacyRequestProxy.php.

45 : MessageInterface
46 {
47 return $this->request()->withProtocolVersion($version);
48 }
$version
Definition: plugin.php:24

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withQueryParams()

ILIAS\WebDAV\Request\LegacyRequestProxy::withQueryParams ( array  $query)

Definition at line 145 of file LegacyRequestProxy.php.

145 : ServerRequestInterface
146 {
147 return $this->request()->withQueryParams($query);
148 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withRequestTarget()

ILIAS\WebDAV\Request\LegacyRequestProxy::withRequestTarget ( string  $requestTarget)

Definition at line 100 of file LegacyRequestProxy.php.

100 : RequestInterface
101 {
102 return $this->request()->withRequestTarget($requestTarget);
103 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withUploadedFiles()

ILIAS\WebDAV\Request\LegacyRequestProxy::withUploadedFiles ( array  $uploadedFiles)

Definition at line 155 of file LegacyRequestProxy.php.

155 : ServerRequestInterface
156 {
157 return $this->request()->withUploadedFiles($uploadedFiles);
158 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

◆ withUri()

ILIAS\WebDAV\Request\LegacyRequestProxy::withUri ( UriInterface  $uri,
bool  $preserveHost = false 
)

Definition at line 120 of file LegacyRequestProxy.php.

120 : RequestInterface
121 {
122 return $this->request()->withUri($uri, $preserveHost);
123 }

References ILIAS\WebDAV\Request\LegacyRequestProxy\request().

+ Here is the call graph for this function:

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