ILIAS  release_8 Revision v8.24
ilQTIMatimage Class Reference
+ Collaboration diagram for ilQTIMatimage:

Public Member Functions

 setImagetype (string $a_imagetype)
 
 getImagetype ()
 
 setLabel (string $a_label)
 
 getLabel ()
 
 setHeight (string $a_height)
 
 getHeight ()
 
 setWidth (string $a_width)
 
 getWidth ()
 
 setEmbedded (string $a_embedded)
 
 getEmbedded ()
 
 setUri (string $a_uri)
 
 getUri ()
 
 setX0 (string $a_x0)
 
 getX0 ()
 
 setY0 (string $a_y0)
 
 getY0 ()
 
 setEntityref (string $a_entityref)
 
 getEntityref ()
 
 setContent (string $a_content)
 
 getContent ()
 
 getRawContent ()
 

Data Fields

const EMBEDDED_BASE64 = 'base64'
 
string $imagetype = null
 
string $label = ''
 
string $height = null
 
string $width = null
 
string $uri = ''
 
string $embedded = null
 
string $x0 = null
 
string $y0 = null
 
string $entityref = null
 
string $content = ''
 

Detailed Description

Definition at line 30 of file class.ilQTIMatimage.php.

Member Function Documentation

◆ getContent()

ilQTIMatimage::getContent ( )

Definition at line 140 of file class.ilQTIMatimage.php.

140 : string
141 {
142 return $this->content;
143 }

References $content.

Referenced by getRawContent().

+ Here is the caller graph for this function:

◆ getEmbedded()

ilQTIMatimage::getEmbedded ( )

Definition at line 90 of file class.ilQTIMatimage.php.

90 : ?string
91 {
92 return $this->embedded;
93 }

References $embedded.

Referenced by getRawContent().

+ Here is the caller graph for this function:

◆ getEntityref()

ilQTIMatimage::getEntityref ( )

Definition at line 130 of file class.ilQTIMatimage.php.

130 : ?string
131 {
132 return $this->entityref;
133 }

References $entityref.

◆ getHeight()

ilQTIMatimage::getHeight ( )

Definition at line 70 of file class.ilQTIMatimage.php.

70 : ?string
71 {
72 return $this->height;
73 }

References $height.

◆ getImagetype()

ilQTIMatimage::getImagetype ( )

Definition at line 50 of file class.ilQTIMatimage.php.

50 : ?string
51 {
52 return $this->imagetype;
53 }

References $imagetype.

◆ getLabel()

ilQTIMatimage::getLabel ( )

Definition at line 60 of file class.ilQTIMatimage.php.

60 : string
61 {
62 return $this->label;
63 }

References $label.

◆ getRawContent()

ilQTIMatimage::getRawContent ( )
Returns
string|null|false

Definition at line 148 of file class.ilQTIMatimage.php.

149 {
150 switch ($this->getEmbedded()) {
152
153 return base64_decode($this->getContent());
154 }
155
156 return $this->getContent();
157 }

References EMBEDDED_BASE64, getContent(), and getEmbedded().

+ Here is the call graph for this function:

◆ getUri()

ilQTIMatimage::getUri ( )

Definition at line 100 of file class.ilQTIMatimage.php.

100 : string
101 {
102 return $this->uri;
103 }

References $uri.

◆ getWidth()

ilQTIMatimage::getWidth ( )

Definition at line 80 of file class.ilQTIMatimage.php.

80 : ?string
81 {
82 return $this->width;
83 }

References $width.

◆ getX0()

ilQTIMatimage::getX0 ( )

Definition at line 110 of file class.ilQTIMatimage.php.

110 : ?string
111 {
112 return $this->x0;
113 }

References $x0.

◆ getY0()

ilQTIMatimage::getY0 ( )

Definition at line 120 of file class.ilQTIMatimage.php.

120 : ?string
121 {
122 return $this->y0;
123 }

References $y0.

◆ setContent()

ilQTIMatimage::setContent ( string  $a_content)

Definition at line 135 of file class.ilQTIMatimage.php.

135 : void
136 {
137 $this->content = $a_content;
138 }

◆ setEmbedded()

ilQTIMatimage::setEmbedded ( string  $a_embedded)

Definition at line 85 of file class.ilQTIMatimage.php.

85 : void
86 {
87 $this->embedded = $a_embedded;
88 }

◆ setEntityref()

ilQTIMatimage::setEntityref ( string  $a_entityref)

Definition at line 125 of file class.ilQTIMatimage.php.

125 : void
126 {
127 $this->entityref = $a_entityref;
128 }

◆ setHeight()

ilQTIMatimage::setHeight ( string  $a_height)

Definition at line 65 of file class.ilQTIMatimage.php.

65 : void
66 {
67 $this->height = $a_height;
68 }

◆ setImagetype()

ilQTIMatimage::setImagetype ( string  $a_imagetype)

Definition at line 45 of file class.ilQTIMatimage.php.

45 : void
46 {
47 $this->imagetype = $a_imagetype;
48 }

◆ setLabel()

ilQTIMatimage::setLabel ( string  $a_label)

Definition at line 55 of file class.ilQTIMatimage.php.

55 : void
56 {
57 $this->label = $a_label;
58 }

◆ setUri()

ilQTIMatimage::setUri ( string  $a_uri)

Definition at line 95 of file class.ilQTIMatimage.php.

95 : void
96 {
97 $this->uri = $a_uri;
98 }

◆ setWidth()

ilQTIMatimage::setWidth ( string  $a_width)

Definition at line 75 of file class.ilQTIMatimage.php.

75 : void
76 {
77 $this->width = $a_width;
78 }

◆ setX0()

ilQTIMatimage::setX0 ( string  $a_x0)

Definition at line 105 of file class.ilQTIMatimage.php.

105 : void
106 {
107 $this->x0 = $a_x0;
108 }

◆ setY0()

ilQTIMatimage::setY0 ( string  $a_y0)

Definition at line 115 of file class.ilQTIMatimage.php.

115 : void
116 {
117 $this->y0 = $a_y0;
118 }

Field Documentation

◆ $content

string ilQTIMatimage::$content = ''

Definition at line 43 of file class.ilQTIMatimage.php.

Referenced by getContent().

◆ $embedded

string ilQTIMatimage::$embedded = null

Definition at line 39 of file class.ilQTIMatimage.php.

Referenced by getEmbedded().

◆ $entityref

string ilQTIMatimage::$entityref = null

Definition at line 42 of file class.ilQTIMatimage.php.

Referenced by getEntityref().

◆ $height

string ilQTIMatimage::$height = null

Definition at line 36 of file class.ilQTIMatimage.php.

Referenced by getHeight().

◆ $imagetype

string ilQTIMatimage::$imagetype = null

Definition at line 34 of file class.ilQTIMatimage.php.

Referenced by getImagetype().

◆ $label

string ilQTIMatimage::$label = ''

Definition at line 35 of file class.ilQTIMatimage.php.

Referenced by getLabel().

◆ $uri

string ilQTIMatimage::$uri = ''

Definition at line 38 of file class.ilQTIMatimage.php.

Referenced by getUri().

◆ $width

string ilQTIMatimage::$width = null

Definition at line 37 of file class.ilQTIMatimage.php.

Referenced by getWidth().

◆ $x0

string ilQTIMatimage::$x0 = null

Definition at line 40 of file class.ilQTIMatimage.php.

Referenced by getX0().

◆ $y0

string ilQTIMatimage::$y0 = null

Definition at line 41 of file class.ilQTIMatimage.php.

Referenced by getY0().

◆ EMBEDDED_BASE64

const ilQTIMatimage::EMBEDDED_BASE64 = 'base64'

Definition at line 32 of file class.ilQTIMatimage.php.

Referenced by getRawContent().


The documentation for this class was generated from the following file: