ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
DummyDefinition.php
Go to the documentation of this file.
1 <?php
2 
20 
22 
27 {
28  public function __construct(private string $id, private string $machine_id, private bool $persists = false)
29  {
30  }
31 
32  public function getId(): string
33  {
34  return $this->id;
35  }
36 
37  public function getFlavourMachineId(): string
38  {
39  return $this->machine_id;
40  }
41 
42  public function getInternalName(): string
43  {
44  return 'foo';
45  }
46 
47  public function getVariantName(): ?string
48  {
49  return null;
50  }
51 
52  public function persist(): bool
53  {
54  return $this->persists;
55  }
56 }
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it...
persist()
Define whether the generated flavor and the respective streams should be persisted, or whether they should only be generated and used in-memory.
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
__construct(private string $id, private string $machine_id, private bool $persists=false)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
getVariantName()
If a definition can be used in several variants (e.g.