ILIAS  release_8 Revision v8.24
class.ilQTIMattext.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
31{
32 public const SPACE_PRESERVE = "1";
33 public const SPACE_DEFAULT = "2";
34
35 public ?string $texttype = null;
36 public ?string $label = null;
37 public ?string $charset = null;
38 public ?string $uri = null;
39 public ?string $xmlspace = null;
40 public ?string $xmllang = null;
41 public ?string $entityref = null;
42 public ?string $width = null;
43 public ?string $height = null;
44 public ?string $x0 = null;
45 public ?string $y0 = null;
46 public ?string $content = null;
47
48 public function setTexttype(string $a_texttype): void
49 {
50 $this->texttype = $a_texttype;
51 }
52
53 public function getTexttype(): ?string
54 {
55 return $this->texttype;
56 }
57
58 public function setLabel(string $a_label): void
59 {
60 $this->label = $a_label;
61 }
62
63 public function getLabel(): ?string
64 {
65 return $this->label;
66 }
67
68 public function setHeight(string $a_height): void
69 {
70 $this->height = $a_height;
71 }
72
73 public function getHeight(): ?string
74 {
75 return $this->height;
76 }
77
78 public function setWidth(string $a_width): void
79 {
80 $this->width = $a_width;
81 }
82
83 public function getWidth(): ?string
84 {
85 return $this->width;
86 }
87
88 public function setCharset(string $a_charset): void
89 {
90 $this->charset = $a_charset;
91 }
92
93 public function getCharset(): ?string
94 {
95 return $this->charset;
96 }
97
98 public function setUri(string $a_uri): void
99 {
100 $this->uri = $a_uri;
101 }
102
103 public function getUri(): ?string
104 {
105 return $this->uri;
106 }
107
108 public function setXmllang(string $a_xmllang): void
109 {
110 $this->xmllang = $a_xmllang;
111 }
112
113 public function getXmllang(): ?string
114 {
115 return $this->xmllang;
116 }
117
118 public function setXmlspace(string $a_xmlspace): void
119 {
120 switch (strtolower($a_xmlspace)) {
121 case "preserve":
122 case "1":
123 $this->xmlspace = self::SPACE_PRESERVE;
124 break;
125 case "default":
126 case "2":
127 $this->xmlspace = self::SPACE_DEFAULT;
128 break;
129 }
130 }
131
132 public function getXmlspace(): ?string
133 {
134 return $this->xmlspace;
135 }
136
137 public function setX0(string $a_x0): void
138 {
139 $this->x0 = $a_x0;
140 }
141
142 public function getX0(): ?string
143 {
144 return $this->x0;
145 }
146
147 public function setY0(string $a_y0): void
148 {
149 $this->y0 = $a_y0;
150 }
151
152 public function getY0(): ?string
153 {
154 return $this->y0;
155 }
156
157 public function setEntityref(string $a_entityref): void
158 {
159 $this->entityref = $a_entityref;
160 }
161
162 public function getEntityref(): ?string
163 {
164 return $this->entityref;
165 }
166
167 public function setContent(string $a_content): void
168 {
169 $this->content = $a_content;
170 }
171
172 public function getContent(): ?string
173 {
174 return $this->content;
175 }
176}
setContent(string $a_content)
setTexttype(string $a_texttype)
setY0(string $a_y0)
setCharset(string $a_charset)
setEntityref(string $a_entityref)
setLabel(string $a_label)
setX0(string $a_x0)
setXmlspace(string $a_xmlspace)
setXmllang(string $a_xmllang)
setWidth(string $a_width)
setUri(string $a_uri)
setHeight(string $a_height)