ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilQTIMattext.php
Go to the documentation of this file.
1<?php
2/*
3 +-----------------------------------------------------------------------------+
4 | ILIAS open source |
5 +-----------------------------------------------------------------------------+
6 | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7 | |
8 | This program is free software; you can redistribute it and/or |
9 | modify it under the terms of the GNU General Public License |
10 | as published by the Free Software Foundation; either version 2 |
11 | of the License, or (at your option) any later version. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 +-----------------------------------------------------------------------------+
22*/
23
24define("SPACE_PRESERVE", "1");
25define("SPACE_DEFAULT", "2");
26
36{
37 public $texttype;
38 public $label;
39 public $charset;
40 public $uri;
41 public $xmlspace;
42 public $xmllang;
43 public $entityref;
44 public $width;
45 public $height;
46 public $x0;
47 public $y0;
48 public $content;
49
50 public function __construct()
51 {
52 }
53
54 public function setTexttype($a_texttype)
55 {
56 $this->texttype = $a_texttype;
57 }
58
59 public function getTexttype()
60 {
61 return $this->texttype;
62 }
63
64 public function setLabel($a_label)
65 {
66 $this->label = $a_label;
67 }
68
69 public function getLabel()
70 {
71 return $this->label;
72 }
73
74 public function setHeight($a_height)
75 {
76 $this->height = $a_height;
77 }
78
79 public function getHeight()
80 {
81 return $this->height;
82 }
83
84 public function setWidth($a_width)
85 {
86 $this->width = $a_width;
87 }
88
89 public function getWidth()
90 {
91 return $this->width;
92 }
93
94 public function setCharset($a_charset)
95 {
96 $this->charset = $a_charset;
97 }
98
99 public function getCharset()
100 {
101 return $this->charset;
102 }
103
104 public function setUri($a_uri)
105 {
106 $this->uri = $a_uri;
107 }
108
109 public function getUri()
110 {
111 return $this->uri;
112 }
113
114 public function setXmllang($a_xmllang)
115 {
116 $this->xmllang = $a_xmllang;
117 }
118
119 public function getXmllang()
120 {
121 return $this->xmllang;
122 }
123
124 public function setXmlspace($a_xmlspace)
125 {
126 switch (strtolower($a_xmlspace)) {
127 case "preserve":
128 case "1":
129 $this->xmlspace = SPACE_PRESERVE;
130 break;
131 case "default":
132 case "2":
133 $this->xmlspace = SPACE_DEFAULT;
134 break;
135 }
136 }
137
138 public function getXmlspace()
139 {
140 return $this->xmlspace;
141 }
142
143 public function setX0($a_x0)
144 {
145 $this->x0 = $a_x0;
146 }
147
148 public function getX0()
149 {
150 return $this->x0;
151 }
152
153 public function setY0($a_y0)
154 {
155 $this->y0 = $a_y0;
156 }
157
158 public function getY0()
159 {
160 return $this->y0;
161 }
162
163 public function setEntityref($a_entityref)
164 {
165 $this->entityref = $a_entityref;
166 }
167
168 public function getEntityref()
169 {
170 return $this->entityref;
171 }
172
173 public function setContent($a_content)
174 {
175 $this->content = $a_content;
176 }
177
178 public function getContent()
179 {
180 return $this->content;
181 }
182}
An exception for terminatinating execution or to throw for unit testing.
const SPACE_DEFAULT
const SPACE_PRESERVE
setEntityref($a_entityref)
setTexttype($a_texttype)
setHeight($a_height)
setContent($a_content)
setCharset($a_charset)
setXmllang($a_xmllang)
setXmlspace($a_xmlspace)
$a_content
Definition: workflow.php:93