ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilQTIMaterial Class Reference
+ Collaboration diagram for ilQTIMaterial:

Public Member Functions

 ilQTIMaterial ()
 addMattext ($a_mattext)
 addMatimage ($a_matimage)
 addMatemtext ($a_matemtext)
 addMataudio ($a_mataudio)
 addMatvideo ($a_matvideo)
 addMatapplet ($a_matapplet)
 addMatapplication ($a_matapplication)
 addMatref ($a_matref)
 addMatbreak ($a_matbreak)
 addMat_extension ($a_mat_extension)
 addAltmaterial ($a_altmaterial)
 getMaterialCount ()
 getMaterial ($a_index)
 setFlow ($a_flow)
 getFlow ()
 setLabel ($a_label)
 getLabel ()
 extractText ()

Data Fields

 $label
 $flow
 $comment
 $mattext
 $matemtext
 $matimage
 $mataudio
 $matvideo
 $matapplet
 $matapplication
 $matref
 $matbreak
 $mat_extension
 $altmaterial
 $materials

Detailed Description

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

Member Function Documentation

ilQTIMaterial::addAltmaterial (   $a_altmaterial)

Definition at line 107 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_altmaterial, "type" => "altmaterial"));
}
ilQTIMaterial::addMat_extension (   $a_mat_extension)

Definition at line 102 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_mat_extension, "type" => "mat_extension"));
}
ilQTIMaterial::addMatapplet (   $a_matapplet)

Definition at line 82 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_matapplet, "type" => "matapplet"));
}
ilQTIMaterial::addMatapplication (   $a_matapplication)

Definition at line 87 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_matapplication, "type" => "matapplication"));
}
ilQTIMaterial::addMataudio (   $a_mataudio)

Definition at line 72 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_mataudio, "type" => "mataudio"));
}
ilQTIMaterial::addMatbreak (   $a_matbreak)

Definition at line 97 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_matbreak, "type" => "matbreak"));
}
ilQTIMaterial::addMatemtext (   $a_matemtext)

Definition at line 67 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_matemtext, "type" => "matemtext"));
}
ilQTIMaterial::addMatimage (   $a_matimage)

Definition at line 62 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_matimage, "type" => "matimage"));
}
ilQTIMaterial::addMatref (   $a_matref)

Definition at line 92 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_matref, "type" => "matref"));
}
ilQTIMaterial::addMattext (   $a_mattext)

Definition at line 57 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_mattext, "type" => "mattext"));
}
ilQTIMaterial::addMatvideo (   $a_matvideo)

Definition at line 77 of file class.ilQTIMaterial.php.

{
array_push($this->materials, array("material" => $a_matvideo, "type" => "matvideo"));
}
ilQTIMaterial::extractText ( )

Definition at line 149 of file class.ilQTIMaterial.php.

References getMaterialCount().

{
$text = "";
if ($this->getMaterialCount())
{
foreach ($this->materials as $mat)
{
if (strcmp($mat["type"], "mattext") == 0)
{
$text .= $mat["material"];
}
}
}
return $text;
}

+ Here is the call graph for this function:

ilQTIMaterial::getFlow ( )

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

References $flow.

{
return $this->flow;
}
ilQTIMaterial::getLabel ( )

Definition at line 144 of file class.ilQTIMaterial.php.

References $label.

{
return $this->label;
}
ilQTIMaterial::getMaterial (   $a_index)

Definition at line 117 of file class.ilQTIMaterial.php.

{
if (array_key_exists($a_index, $this->materials))
{
return $this->materials[$a_index];
}
else
{
return FALSE;
}
}
ilQTIMaterial::getMaterialCount ( )

Definition at line 112 of file class.ilQTIMaterial.php.

Referenced by extractText().

{
return count($this->materials);
}

+ Here is the caller graph for this function:

ilQTIMaterial::ilQTIMaterial ( )

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

{
$this->flow = 0;
$this->altmaterial = array();
$this->materials = array();
}
ilQTIMaterial::setFlow (   $a_flow)

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

{
$this->flow = $a_flow;
}
ilQTIMaterial::setLabel (   $a_label)

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

{
$this->label = $a_label;
}

Field Documentation

ilQTIMaterial::$altmaterial

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

ilQTIMaterial::$comment

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

ilQTIMaterial::$flow

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

Referenced by getFlow().

ilQTIMaterial::$label

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

Referenced by getLabel().

ilQTIMaterial::$mat_extension

Definition at line 46 of file class.ilQTIMaterial.php.

ilQTIMaterial::$matapplet

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

ilQTIMaterial::$matapplication

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

ilQTIMaterial::$mataudio

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

ilQTIMaterial::$matbreak

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

ilQTIMaterial::$matemtext

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

ilQTIMaterial::$materials

Definition at line 48 of file class.ilQTIMaterial.php.

ilQTIMaterial::$matimage

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

ilQTIMaterial::$matref

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

ilQTIMaterial::$mattext

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

ilQTIMaterial::$matvideo

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


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