ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilQTIMatimage.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
33{
34 const EMBEDDED_BASE64 = 'base64';
35
37 var $label;
39 var $width;
40 var $uri;
42 var $x0;
43 var $y0;
46
47 function ilQTIMatimage()
48 {
49 }
50
51 function setImagetype($a_imagetype)
52 {
53 $this->imagetype = $a_imagetype;
54 }
55
56 function getImagetype()
57 {
58 return $this->imagetype;
59 }
60
61 function setLabel($a_label)
62 {
63 $this->label = $a_label;
64 }
65
66 function getLabel()
67 {
68 return $this->label;
69 }
70
71 function setHeight($a_height)
72 {
73 $this->height = $a_height;
74 }
75
76 function getHeight()
77 {
78 return $this->height;
79 }
80
81 function setWidth($a_width)
82 {
83 $this->width = $a_width;
84 }
85
86 function getWidth()
87 {
88 return $this->width;
89 }
90
91 function setEmbedded($a_embedded)
92 {
93 $this->embedded = $a_embedded;
94 }
95
96 function getEmbedded()
97 {
98 return $this->embedded;
99 }
100
101 function setUri($a_uri)
102 {
103 $this->uri = $a_uri;
104 }
105
106 function getUri()
107 {
108 return $this->uri;
109 }
110
111 function setX0($a_x0)
112 {
113 $this->x0 = $a_x0;
114 }
115
116 function getX0()
117 {
118 return $this->x0;
119 }
120
121 function setY0($a_y0)
122 {
123 $this->y0 = $a_y0;
124 }
125
126 function getY0()
127 {
128 return $this->y0;
129 }
130
131 function setEntityref($a_entityref)
132 {
133 $this->entityref = $a_entityref;
134 }
135
136 function getEntityref()
137 {
138 return $this->entityref;
139 }
140
141 function setContent($a_content)
142 {
143 $this->content = $a_content;
144 }
145
146 function getContent()
147 {
148 return $this->content;
149 }
150
151 public function getRawContent()
152 {
153 switch( $this->getEmbedded() )
154 {
156
157 return base64_decode($this->getContent());
158 }
159
160 return $this->getContent();
161 }
162}
163?>
setEntityref($a_entityref)
setContent($a_content)
setEmbedded($a_embedded)
setImagetype($a_imagetype)