ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 (\ILIAS\HTTP\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 33 of file BundledRequestBuilder.php.

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

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

Member Function Documentation

◆ buildRequest()

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

Implements ILIAS\StaticURL\Request\RequestBuilder.

Definition at line 39 of file BundledRequestBuilder.php.

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

39  : ?Request
40  {
41  if (($request = $this->legacy->buildRequest(
42  $http,
43  $refinery,
44  $handlers
45  )) instanceof \ILIAS\StaticURL\Request\Request) {
46  // we have now the situation that a new static URL is requested, but the handler is not yet registered or implemented
47  // we built a legacy request using the LegacyRequestBuilder for this to let the old system handle it.
48  return $request;
49  }
50 
51  return $this->static->buildRequest($http, $refinery, $handlers);
52  }
Interface Observer Contains several chained tasks and infos about them.
$http
Definition: deliver.php:14
legacy()
expected output: > ILIAS shows the rendered Component.
Definition: legacy.php:13
+ Here is the call graph for this function:

Field Documentation

◆ $legacy

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

Definition at line 30 of file BundledRequestBuilder.php.

◆ $static

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

Definition at line 31 of file BundledRequestBuilder.php.


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