ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilQTIMatimage Class Reference
+ Collaboration diagram for ilQTIMatimage:

Public Member Functions

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

Data Fields

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

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilQTIMatimage::__construct ( )

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

48  {
49  }

Member Function Documentation

◆ getContent()

ilQTIMatimage::getContent ( )

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

References $content.

Referenced by getRawContent().

147  {
148  return $this->content;
149  }
+ Here is the caller graph for this function:

◆ getEmbedded()

ilQTIMatimage::getEmbedded ( )

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

References $embedded.

Referenced by getRawContent().

97  {
98  return $this->embedded;
99  }
+ Here is the caller graph for this function:

◆ getEntityref()

ilQTIMatimage::getEntityref ( )

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

References $entityref.

137  {
138  return $this->entityref;
139  }

◆ getHeight()

ilQTIMatimage::getHeight ( )

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

References $height.

77  {
78  return $this->height;
79  }

◆ getImagetype()

ilQTIMatimage::getImagetype ( )

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

References $imagetype.

57  {
58  return $this->imagetype;
59  }

◆ getLabel()

ilQTIMatimage::getLabel ( )

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

References $label.

67  {
68  return $this->label;
69  }

◆ getRawContent()

ilQTIMatimage::getRawContent ( )

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

References getContent(), and getEmbedded().

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  }
+ Here is the call graph for this function:

◆ getUri()

ilQTIMatimage::getUri ( )

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

References $uri.

107  {
108  return $this->uri;
109  }

◆ getWidth()

ilQTIMatimage::getWidth ( )

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

References $width.

87  {
88  return $this->width;
89  }

◆ getX0()

ilQTIMatimage::getX0 ( )

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

References $x0.

117  {
118  return $this->x0;
119  }

◆ getY0()

ilQTIMatimage::getY0 ( )

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

References $y0.

127  {
128  return $this->y0;
129  }

◆ setContent()

ilQTIMatimage::setContent (   $a_content)

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

References $a_content.

142  {
143  $this->content = $a_content;
144  }
$a_content
Definition: workflow.php:94

◆ setEmbedded()

ilQTIMatimage::setEmbedded (   $a_embedded)

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

92  {
93  $this->embedded = $a_embedded;
94  }

◆ setEntityref()

ilQTIMatimage::setEntityref (   $a_entityref)

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

132  {
133  $this->entityref = $a_entityref;
134  }

◆ setHeight()

ilQTIMatimage::setHeight (   $a_height)

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

72  {
73  $this->height = $a_height;
74  }

◆ setImagetype()

ilQTIMatimage::setImagetype (   $a_imagetype)

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

52  {
53  $this->imagetype = $a_imagetype;
54  }

◆ setLabel()

ilQTIMatimage::setLabel (   $a_label)

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

62  {
63  $this->label = $a_label;
64  }

◆ setUri()

ilQTIMatimage::setUri (   $a_uri)

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

102  {
103  $this->uri = $a_uri;
104  }

◆ setWidth()

ilQTIMatimage::setWidth (   $a_width)

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

82  {
83  $this->width = $a_width;
84  }

◆ setX0()

ilQTIMatimage::setX0 (   $a_x0)

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

112  {
113  $this->x0 = $a_x0;
114  }

◆ setY0()

ilQTIMatimage::setY0 (   $a_y0)

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

122  {
123  $this->y0 = $a_y0;
124  }

Field Documentation

◆ $content

ilQTIMatimage::$content

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

Referenced by getContent().

◆ $embedded

ilQTIMatimage::$embedded

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

Referenced by getEmbedded().

◆ $entityref

ilQTIMatimage::$entityref

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

Referenced by getEntityref().

◆ $height

ilQTIMatimage::$height

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

Referenced by getHeight().

◆ $imagetype

ilQTIMatimage::$imagetype

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

Referenced by getImagetype().

◆ $label

ilQTIMatimage::$label

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

Referenced by getLabel().

◆ $uri

ilQTIMatimage::$uri

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

Referenced by getUri().

◆ $width

ilQTIMatimage::$width

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

Referenced by getWidth().

◆ $x0

ilQTIMatimage::$x0

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

Referenced by getX0().

◆ $y0

ilQTIMatimage::$y0

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

Referenced by getY0().

◆ EMBEDDED_BASE64

const ilQTIMatimage::EMBEDDED_BASE64 = 'base64'

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


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