ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Action.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\Data\URI;
24 
28 class Action
29 {
30  public function __construct(
31  private int $id,
32  private string $name,
33  private string $extension,
34  private URI $launcher_url,
35  private ?string $url_appendix = null,
36  private ?string $target_ext = null
37  ) {
38  }
39 
40  public function withId(int $id): self
41  {
42  $this->id = $id;
43  return $this;
44  }
45 
46  public function getId(): int
47  {
48  return $this->id;
49  }
50 
51  public function getName(): string
52  {
53  return $this->name;
54  }
55 
56  public function getExtension(): string
57  {
58  return $this->extension;
59  }
60 
61  public function getLauncherUrl(): URI
62  {
63  return $this->launcher_url;
64  }
65 
66  public function getUrlAppendix(): ?string
67  {
68  return $this->url_appendix;
69  }
70 
71  public function getTargetExtension(): ?string
72  {
73  return $this->target_ext;
74  }
75 
76 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(private int $id, private string $name, private string $extension, private URI $launcher_url, private ?string $url_appendix=null, private ?string $target_ext=null)
Definition: Action.php:30