ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

References $content.

Referenced by getRawContent().

140  : string
141  {
142  return $this->content;
143  }
+ Here is the caller graph for this function:

◆ getEmbedded()

ilQTIMatimage::getEmbedded ( )

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

References $embedded.

Referenced by getRawContent().

90  : ?string
91  {
92  return $this->embedded;
93  }
+ Here is the caller graph for this function:

◆ getEntityref()

ilQTIMatimage::getEntityref ( )

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

References $entityref.

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

◆ getHeight()

ilQTIMatimage::getHeight ( )

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

References $height.

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

◆ getImagetype()

ilQTIMatimage::getImagetype ( )

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

References $imagetype.

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

◆ getLabel()

ilQTIMatimage::getLabel ( )

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

References $label.

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

◆ getRawContent()

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

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

References getContent(), and getEmbedded().

149  {
150  switch ($this->getEmbedded()) {
151  case self::EMBEDDED_BASE64:
152 
153  return base64_decode($this->getContent());
154  }
155 
156  return $this->getContent();
157  }
+ Here is the call graph for this function:

◆ getUri()

ilQTIMatimage::getUri ( )

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

References $uri.

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

◆ getWidth()

ilQTIMatimage::getWidth ( )

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

References $width.

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

◆ getX0()

ilQTIMatimage::getX0 ( )

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

References $x0.

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

◆ getY0()

ilQTIMatimage::getY0 ( )

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

References $y0.

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

◆ 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.


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