ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
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
32
class
ilQTIMatimage
33
{
34
const
EMBEDDED_BASE64
=
'base64'
;
35
36
var
$imagetype
;
37
var
$label
;
38
var
$height
;
39
var
$width
;
40
var
$uri
;
41
var
$embedded
;
42
var
$x0
;
43
var
$y0
;
44
var
$entityref
;
45
var
$content
;
46
47
function
__construct
()
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
{
155
case
self::EMBEDDED_BASE64:
156
157
return
base64_decode($this->
getContent
());
158
}
159
160
return
$this->
getContent
();
161
}
162
}
163
?>
ilQTIMatimage\getLabel
getLabel()
Definition:
class.ilQTIMatimage.php:66
ilQTIMatimage\$embedded
$embedded
Definition:
class.ilQTIMatimage.php:41
ilQTIMatimage\$uri
$uri
Definition:
class.ilQTIMatimage.php:40
ilQTIMatimage\getEntityref
getEntityref()
Definition:
class.ilQTIMatimage.php:136
ilQTIMatimage\setX0
setX0($a_x0)
Definition:
class.ilQTIMatimage.php:111
ilQTIMatimage\EMBEDDED_BASE64
const EMBEDDED_BASE64
Definition:
class.ilQTIMatimage.php:34
ilQTIMatimage\setContent
setContent($a_content)
Definition:
class.ilQTIMatimage.php:141
ilQTIMatimage\$label
$label
Definition:
class.ilQTIMatimage.php:37
ilQTIMatimage\$entityref
$entityref
Definition:
class.ilQTIMatimage.php:44
ilQTIMatimage\$content
$content
Definition:
class.ilQTIMatimage.php:45
ilQTIMatimage\setWidth
setWidth($a_width)
Definition:
class.ilQTIMatimage.php:81
ilQTIMatimage\setUri
setUri($a_uri)
Definition:
class.ilQTIMatimage.php:101
ilQTIMatimage\getX0
getX0()
Definition:
class.ilQTIMatimage.php:116
ilQTIMatimage\setEntityref
setEntityref($a_entityref)
Definition:
class.ilQTIMatimage.php:131
ilQTIMatimage\$imagetype
$imagetype
Definition:
class.ilQTIMatimage.php:36
ilQTIMatimage\$y0
$y0
Definition:
class.ilQTIMatimage.php:43
ilQTIMatimage\$height
$height
Definition:
class.ilQTIMatimage.php:38
ilQTIMatimage\getY0
getY0()
Definition:
class.ilQTIMatimage.php:126
ilQTIMatimage\$x0
$x0
Definition:
class.ilQTIMatimage.php:42
$a_content
$a_content
Definition:
workflow.php:94
ilQTIMatimage\setEmbedded
setEmbedded($a_embedded)
Definition:
class.ilQTIMatimage.php:91
ilQTIMatimage\getHeight
getHeight()
Definition:
class.ilQTIMatimage.php:76
ilQTIMatimage\setHeight
setHeight($a_height)
Definition:
class.ilQTIMatimage.php:71
ilQTIMatimage\setY0
setY0($a_y0)
Definition:
class.ilQTIMatimage.php:121
ilQTIMatimage\getUri
getUri()
Definition:
class.ilQTIMatimage.php:106
ilQTIMatimage\$width
$width
Definition:
class.ilQTIMatimage.php:39
ilQTIMatimage
Definition:
class.ilQTIMatimage.php:32
ilQTIMatimage\getRawContent
getRawContent()
Definition:
class.ilQTIMatimage.php:151
ilQTIMatimage\getWidth
getWidth()
Definition:
class.ilQTIMatimage.php:86
ilQTIMatimage\setImagetype
setImagetype($a_imagetype)
Definition:
class.ilQTIMatimage.php:51
ilQTIMatimage\getContent
getContent()
Definition:
class.ilQTIMatimage.php:146
php
ilQTIMatimage\setLabel
setLabel($a_label)
Definition:
class.ilQTIMatimage.php:61
ilQTIMatimage\__construct
__construct()
Definition:
class.ilQTIMatimage.php:47
ilQTIMatimage\getImagetype
getImagetype()
Definition:
class.ilQTIMatimage.php:56
ilQTIMatimage\getEmbedded
getEmbedded()
Definition:
class.ilQTIMatimage.php:96
Services
QTI
classes
class.ilQTIMatimage.php
Generated on Fri Jan 17 2025 19:01:15 for ILIAS by
1.8.13 (using
Doxyfile
)