ILIAS  release_8 Revision v8.24
ILIAS\HTTP\Wrapper\WrapperFactory Class Reference

Class WrapperFactory. More...

+ Collaboration diagram for ILIAS\HTTP\Wrapper\WrapperFactory:

Public Member Functions

 __construct (RequestInterface $request)
 WrapperFactory constructor. More...
 
 query ()
 
 post ()
 
 cookie ()
 

Private Attributes

RequestInterface $request
 

Detailed Description

Class WrapperFactory.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 26 of file WrapperFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\HTTP\Wrapper\WrapperFactory::__construct ( RequestInterface  $request)

WrapperFactory constructor.

Definition at line 33 of file WrapperFactory.php.

34 {
35 $this->request = $request;
36 }

References ILIAS\HTTP\Wrapper\WrapperFactory\$request.

Member Function Documentation

◆ cookie()

ILIAS\HTTP\Wrapper\WrapperFactory::cookie ( )

Definition at line 48 of file WrapperFactory.php.

48 : ArrayBasedRequestWrapper
49 {
50 return new ArrayBasedRequestWrapper($this->request->getCookieParams());
51 }

◆ post()

ILIAS\HTTP\Wrapper\WrapperFactory::post ( )

Definition at line 43 of file WrapperFactory.php.

43 : ArrayBasedRequestWrapper
44 {
45 return new ArrayBasedRequestWrapper($this->request->getParsedBody());
46 }

◆ query()

ILIAS\HTTP\Wrapper\WrapperFactory::query ( )

Definition at line 38 of file WrapperFactory.php.

38 : ArrayBasedRequestWrapper
39 {
40 return new ArrayBasedRequestWrapper($this->request->getQueryParams());
41 }

Field Documentation

◆ $request

RequestInterface ILIAS\HTTP\Wrapper\WrapperFactory::$request
private

Definition at line 28 of file WrapperFactory.php.

Referenced by ILIAS\HTTP\Wrapper\WrapperFactory\__construct().


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