ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilQTIFlowMat Class Reference
+ Inheritance diagram for ilQTIFlowMat:
+ Collaboration diagram for ilQTIFlowMat:

Public Member Functions

 __construct ()
 
 setComment ($a_comment)
 
 getComment ()
 
 addFlow_mat ($a_flow_mat)
 
 addMaterial (ilQTIMaterial $a_material)
 {
Parameters
ilQTIMaterial$flow_mat
} More...
 
 getMaterial ($index)
 {
Parameters
$indexint
Returns
ilQTIMaterial|null
} More...
 
 addMaterial_ref ($a_material_ref)
 

Data Fields

 $comment
 
 $flow_mat
 
 $material
 
 $material_ref
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilQTIFlowMat::__construct ( )

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

42  {
43  $this->flow_mat = array();
44  $this->material = array();
45  $this->material_ref = array();
46  }

Member Function Documentation

◆ addFlow_mat()

ilQTIFlowMat::addFlow_mat (   $a_flow_mat)

Definition at line 58 of file class.ilQTIFlowMat.php.

59  {
60  array_push($this->flow_mat, $a_flow_mat);
61  }

◆ addMaterial()

ilQTIFlowMat::addMaterial ( ilQTIMaterial  $a_material)

{

Parameters
ilQTIMaterial$flow_mat
}

Implements ilQTIMaterialAware.

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

67  {
68  $this->material[] = $a_material;
69  }

◆ addMaterial_ref()

ilQTIFlowMat::addMaterial_ref (   $a_material_ref)

Definition at line 83 of file class.ilQTIFlowMat.php.

84  {
85  array_push($this->material_ref, $a_material_ref);
86  }

◆ getComment()

ilQTIFlowMat::getComment ( )

Definition at line 53 of file class.ilQTIFlowMat.php.

References $comment.

54  {
55  return $this->comment;
56  }

◆ getMaterial()

ilQTIFlowMat::getMaterial (   $index)

{

Parameters
$indexint
Returns
ilQTIMaterial|null
}

Implements ilQTIMaterialAware.

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

References $index.

75  {
76  if (isset($this->material[$index])) {
77  return $this->material[$index];
78  }
79 
80  return null;
81  }
$index
Definition: metadata.php:60

◆ setComment()

ilQTIFlowMat::setComment (   $a_comment)

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

References comment().

49  {
50  $this->comment = $a_comment;
51  }
comment()
Definition: comment.php:2
+ Here is the call graph for this function:

Field Documentation

◆ $comment

ilQTIFlowMat::$comment

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

Referenced by getComment().

◆ $flow_mat

ilQTIFlowMat::$flow_mat

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

◆ $material

ilQTIFlowMat::$material

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

◆ $material_ref

ilQTIFlowMat::$material_ref

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


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