ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilQTIMatimage.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
31 public const EMBEDDED_BASE64 = 'base64';
32
33 public ?string $imagetype = null;
34 public string $label = '';
35 public ?string $height = null;
36 public ?string $width = null;
37 public string $uri = '';
38 public ?string $embedded = null;
39 public ?string $x0 = null;
40 public ?string $y0 = null;
41 public ?string $entityref = null;
42 public string $content = '';
43
44 public function setImagetype(string $a_imagetype): void
45 {
46 $this->imagetype = $a_imagetype;
47 }
48
49 public function getImagetype(): ?string
50 {
51 return $this->imagetype;
52 }
53
54 public function setLabel(string $a_label): void
55 {
56 $this->label = $a_label;
57 }
58
59 public function getLabel(): string
60 {
61 return $this->label;
62 }
63
64 public function setHeight(string $a_height): void
65 {
66 $this->height = $a_height;
67 }
68
69 public function getHeight(): ?string
70 {
71 return $this->height;
72 }
73
74 public function setWidth(string $a_width): void
75 {
76 $this->width = $a_width;
77 }
78
79 public function getWidth(): ?string
80 {
81 return $this->width;
82 }
83
84 public function setEmbedded(string $a_embedded): void
85 {
86 $this->embedded = $a_embedded;
87 }
88
89 public function getEmbedded(): ?string
90 {
91 return $this->embedded;
92 }
93
94 public function setUri(string $a_uri): void
95 {
96 $this->uri = $a_uri;
97 }
98
99 public function getUri(): string
100 {
101 return $this->uri;
102 }
103
104 public function setX0(string $a_x0): void
105 {
106 $this->x0 = $a_x0;
107 }
108
109 public function getX0(): ?string
110 {
111 return $this->x0;
112 }
113
114 public function setY0(string $a_y0): void
115 {
116 $this->y0 = $a_y0;
117 }
118
119 public function getY0(): ?string
120 {
121 return $this->y0;
122 }
123
124 public function setEntityref(string $a_entityref): void
125 {
126 $this->entityref = $a_entityref;
127 }
128
129 public function getEntityref(): ?string
130 {
131 return $this->entityref;
132 }
133
134 public function setContent(string $a_content): void
135 {
136 $this->content = $a_content;
137 }
138
139 public function getContent(): string
140 {
141 return $this->content;
142 }
143
147 public function getRawContent()
148 {
149 switch ($this->getEmbedded()) {
151
152 return base64_decode($this->getContent());
153 }
154
155 return $this->getContent();
156 }
157}
setY0(string $a_y0)
setImagetype(string $a_imagetype)
setHeight(string $a_height)
setEntityref(string $a_entityref)
setWidth(string $a_width)
setContent(string $a_content)
setEmbedded(string $a_embedded)
setLabel(string $a_label)
setUri(string $a_uri)
setX0(string $a_x0)