ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
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)
 

Private Attributes

LegacyRequestBuilder $legacy
 
StaticURLRequestBuilder $static
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 34 of file BundledRequestBuilder.php.

References ILIAS\UI\examples\MainControls\Slate\Legacy\legacy().

35  {
36  $this->legacy = new LegacyRequestBuilder();
37  $this->static = new StaticURLRequestBuilder();
38  }
legacy()
expected output: > ILIAS shows the rendered Component.
Definition: legacy.php:29
+ Here is the call graph for this function:

Member Function Documentation

◆ buildRequest()

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

Implements ILIAS\StaticURL\Request\RequestBuilder.

Definition at line 40 of file BundledRequestBuilder.php.

References ILIAS\UI\examples\MainControls\Slate\Legacy\legacy().

40  : ?Request
41  {
42  if (($request = $this->legacy->buildRequest(
43  $http,
44  $refinery,
45  $handlers
46  )) instanceof Request) {
47  // we have now the situation that a new static URL is requested, but the handler is not yet registered or implemented
48  // we built a legacy request using the LegacyRequestBuilder for this to let the old system handle it.
49  return $request;
50  }
51 
52  return $this->static->buildRequest($http, $refinery, $handlers);
53  }
$http
Definition: deliver.php:30
legacy()
expected output: > ILIAS shows the rendered Component.
Definition: legacy.php:29
+ 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.

◆ $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: