ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ZipStructureDefinition.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28{
29 public function getId(): string
30 {
31 return 'a6ac86ca80c33ac3e5bfd4fc8da30f05a888e4cfb17fda479ba9b6f08b1f33ba';
32 }
33
34 public function getFlavourMachineId(): string
35 {
36 return 'zip_structure_reader';
37 }
38
39 public function getInternalName(): string
40 {
41 return 'Container Structure';
42 }
43
44 public function getVariantName(): ?string
45 {
46 return null;
47 }
48
49 public function persist(): bool
50 {
51 return true;
52 }
53
54 public function sleep(array $data): string
55 {
56 return json_encode($data);
57 }
58
59 public function wake(string $data): array
60 {
61 return json_decode($data, true);
62 }
63
64}
getVariantName()
If a definition can be used in several variants (e.g.
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
persist()
Define whether the generated flavor and the respective streams should be persisted,...
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it,...