ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
24 define ("SPACE_PRESERVE", "1");
25 define ("SPACE_DEFAULT", "2");
26 
36 {
37  var $texttype;
38  var $label;
39  var $charset;
40  var $uri;
41  var $xmlspace;
42  var $xmllang;
44  var $width;
45  var $height;
46  var $x0;
47  var $y0;
48  var $content;
49 
50  function ilQTIMatimage()
51  {
52  }
53 
54  function setTexttype($a_texttype)
55  {
56  $this->texttype = $a_texttype;
57  }
58 
59  function getTexttype()
60  {
61  return $this->texttype;
62  }
63 
64  function setLabel($a_label)
65  {
66  $this->label = $a_label;
67  }
68 
69  function getLabel()
70  {
71  return $this->label;
72  }
73 
74  function setHeight($a_height)
75  {
76  $this->height = $a_height;
77  }
78 
79  function getHeight()
80  {
81  return $this->height;
82  }
83 
84  function setWidth($a_width)
85  {
86  $this->width = $a_width;
87  }
88 
89  function getWidth()
90  {
91  return $this->width;
92  }
93 
94  function setCharset($a_charset)
95  {
96  $this->charset = $a_charset;
97  }
98 
99  function getCharset()
100  {
101  return $this->charset;
102  }
103 
104  function setUri($a_uri)
105  {
106  $this->uri = $a_uri;
107  }
108 
109  function getUri()
110  {
111  return $this->uri;
112  }
113 
114  function setXmllang($a_xmllang)
115  {
116  $this->xmllang = $a_xmllang;
117  }
118 
119  function getXmllang()
120  {
121  return $this->xmllang;
122  }
123 
124  function setXmlspace($a_xmlspace)
125  {
126  switch (strtolower($a_xmlspace))
127  {
128  case "preserve":
129  case "1":
130  $this->xmlspace = SPACE_PRESERVE;
131  break;
132  case "default":
133  case "2":
134  $this->xmlspace = SPACE_DEFAULT;
135  break;
136  }
137  }
138 
139  function getXmlspace()
140  {
141  return $this->xmlspace;
142  }
143 
144  function setX0($a_x0)
145  {
146  $this->x0 = $a_x0;
147  }
148 
149  function getX0()
150  {
151  return $this->x0;
152  }
153 
154  function setY0($a_y0)
155  {
156  $this->y0 = $a_y0;
157  }
158 
159  function getY0()
160  {
161  return $this->y0;
162  }
163 
164  function setEntityref($a_entityref)
165  {
166  $this->entityref = $a_entityref;
167  }
168 
169  function getEntityref()
170  {
171  return $this->entityref;
172  }
173 
174  function setContent($a_content)
175  {
176  $this->content = $a_content;
177  }
178 
179  function getContent()
180  {
181  return $this->content;
182  }
183 }
184 ?>