ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
DummyDefinition.php
Go to the documentation of this file.
1 <?php
2 
20 
22 
27 {
28  private string $id;
29  private string $machine_id;
30  private bool $persists = false;
31 
32  public function __construct(string $id, string $machine_id, bool $persists = false)
33  {
34  $this->id = $id;
35  $this->machine_id = $machine_id;
36  $this->persists = $persists;
37  }
38 
39  public function getId(): string
40  {
41  return $this->id;
42  }
43 
44  public function getFlavourMachineId(): string
45  {
46  return $this->machine_id;
47  }
48 
49  public function getInternalName(): string
50  {
51  return 'foo';
52  }
53 
54  public function getVariantName(): ?string
55  {
56  return null;
57  }
58 
59  public function persist(): bool
60  {
61  return $this->persists;
62  }
63 }
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(string $id, string $machine_id, bool $persists=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getVariantName()
If a definition can be used in several variants (e.g.