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