ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
getVariantName()
If a definition can be used in several variants (e.g.
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it,...
__construct(private string $id, private string $machine_id, private bool $persists=false)
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
persist()
Define whether the generated flavor and the respective streams should be persisted,...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...