ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ProvidePublicPage.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ilCtrlInterface;
24 use ilStartUpGUI;
25 
27 {
28  public function __construct(
29  private readonly string $id,
30  private readonly ilCtrlInterface $ctrl
31  ) {
32  }
33 
34  public function url(): string
35  {
36  $this->ctrl->setParameterByClass(ilStartUpGUI::class, 'id', $this->id);
37  $url = $this->ctrl->getLinkTargetByClass(ilStartUpGUI::class, 'showLegalDocuments');
38  $this->ctrl->setParameterByClass(ilStartUpGUI::class, 'id', '');
39 
40  return $url;
41  }
42 }
$url
Definition: shib_logout.php:66
__construct(private readonly string $id, private readonly ilCtrlInterface $ctrl)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23