ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 29 of file class.ilQTIMatimage.php.

Member Function Documentation

◆ getContent()

ilQTIMatimage::getContent ( )

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

References $content.

Referenced by getRawContent().

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

◆ getEmbedded()

ilQTIMatimage::getEmbedded ( )

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

References $embedded.

Referenced by getRawContent().

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

◆ getEntityref()

ilQTIMatimage::getEntityref ( )

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

References $entityref.

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

◆ getHeight()

ilQTIMatimage::getHeight ( )

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

References $height.

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

◆ getImagetype()

ilQTIMatimage::getImagetype ( )

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

References $imagetype.

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

◆ getLabel()

ilQTIMatimage::getLabel ( )

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

References $label.

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

◆ getRawContent()

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

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

References getContent(), and getEmbedded().

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

◆ getUri()

ilQTIMatimage::getUri ( )

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

References $uri.

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

◆ getWidth()

ilQTIMatimage::getWidth ( )

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

References $width.

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

◆ getX0()

ilQTIMatimage::getX0 ( )

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

References $x0.

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

◆ getY0()

ilQTIMatimage::getY0 ( )

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

References $y0.

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

◆ setContent()

ilQTIMatimage::setContent ( string  $a_content)

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

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

◆ setEmbedded()

ilQTIMatimage::setEmbedded ( string  $a_embedded)

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

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

◆ setEntityref()

ilQTIMatimage::setEntityref ( string  $a_entityref)

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

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

◆ setHeight()

ilQTIMatimage::setHeight ( string  $a_height)

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

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

◆ setImagetype()

ilQTIMatimage::setImagetype ( string  $a_imagetype)

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

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

◆ setLabel()

ilQTIMatimage::setLabel ( string  $a_label)

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

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

◆ setUri()

ilQTIMatimage::setUri ( string  $a_uri)

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

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

◆ setWidth()

ilQTIMatimage::setWidth ( string  $a_width)

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

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

◆ setX0()

ilQTIMatimage::setX0 ( string  $a_x0)

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

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

◆ setY0()

ilQTIMatimage::setY0 ( string  $a_y0)

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

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

Field Documentation

◆ $content

string ilQTIMatimage::$content = ''

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

Referenced by getContent().

◆ $embedded

string ilQTIMatimage::$embedded = null

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

Referenced by getEmbedded().

◆ $entityref

string ilQTIMatimage::$entityref = null

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

Referenced by getEntityref().

◆ $height

string ilQTIMatimage::$height = null

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

Referenced by getHeight().

◆ $imagetype

string ilQTIMatimage::$imagetype = null

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

Referenced by getImagetype().

◆ $label

string ilQTIMatimage::$label = ''

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

Referenced by getLabel().

◆ $uri

string ilQTIMatimage::$uri = ''

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

Referenced by getUri().

◆ $width

string ilQTIMatimage::$width = null

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

Referenced by getWidth().

◆ $x0

string ilQTIMatimage::$x0 = null

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

Referenced by getX0().

◆ $y0

string ilQTIMatimage::$y0 = null

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

Referenced by getY0().

◆ EMBEDDED_BASE64

const ilQTIMatimage::EMBEDDED_BASE64 = 'base64'

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


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