ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\StaticURL\Request\BundledRequestBuilder Class Reference
+ Inheritance diagram for ILIAS\StaticURL\Request\BundledRequestBuilder:
+ Collaboration diagram for ILIAS\StaticURL\Request\BundledRequestBuilder:

Public Member Functions

 __construct ()
 
 buildRequest (Services $http, Factory $refinery, array $handlers)
 
 buildRequest (Services $http, Factory $refinery, array $handlers)
 

Private Attributes

LegacyRequestBuilder $legacy
 
StaticURLRequestBuilder $static
 
ShortlinkRequestBuilder $shortlink
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ILIAS\StaticURL\Request\BundledRequestBuilder::__construct ( )

Member Function Documentation

◆ buildRequest()

ILIAS\StaticURL\Request\BundledRequestBuilder::buildRequest ( Services  $http,
Factory  $refinery,
array  $handlers 
)

Implements ILIAS\StaticURL\Request\RequestBuilder.

Definition at line 42 of file BundledRequestBuilder.php.

42 : ?Request
43 {
44 if (($request = $this->shortlink->buildRequest(
45 $http,
47 $handlers
48 )) instanceof Request) {
49 return $request;
50 }
51
52 if (($request = $this->legacy->buildRequest(
53 $http,
55 $handlers
56 )) instanceof Request) {
57 // we have now the situation that a new static URL is requested, but the handler is not yet registered or implemented
58 // we built a legacy request using the LegacyRequestBuilder for this to let the old system handle it.
59 return $request;
60 }
61
62 return $this->static->buildRequest($http, $refinery, $handlers);
63 }
$http
Definition: deliver.php:30

References $http, ILIAS\UI\examples\Layout\Page\Mail\$refinery, and ILIAS\UI\examples\MainControls\Slate\Legacy\legacy().

+ Here is the call graph for this function:

Field Documentation

◆ $legacy

LegacyRequestBuilder ILIAS\StaticURL\Request\BundledRequestBuilder::$legacy
private

Definition at line 31 of file BundledRequestBuilder.php.

◆ $shortlink

ShortlinkRequestBuilder ILIAS\StaticURL\Request\BundledRequestBuilder::$shortlink
private

Definition at line 33 of file BundledRequestBuilder.php.

◆ $static

StaticURLRequestBuilder ILIAS\StaticURL\Request\BundledRequestBuilder::$static
private

Definition at line 32 of file BundledRequestBuilder.php.


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