ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilQTIFlowMat.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
30 {
31  public ?string $comment = null;
33  public array $flow_mat = [];
35  public array $material = [];
36 
37  public function setComment(string $a_comment): void
38  {
39  $this->comment = $a_comment;
40  }
41 
42  public function getComment(): ?string
43  {
44  return $this->comment;
45  }
46 
47  public function addFlowMat(ilQTIFlowMat $a_flow_mat): void
48  {
49  $this->flow_mat[] = $a_flow_mat;
50  }
51 
52  public function addMaterial(ilQTIMaterial $material): void
53  {
54  $this->material[] = $material;
55  }
56 
57  public function getMaterial(int $index): ?ilQTIMaterial
58  {
59  return $this->material[$index] ?? null;
60  }
61 }
addFlowMat(ilQTIFlowMat $a_flow_mat)
getMaterial(int $index)
addMaterial(ilQTIMaterial $material)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setComment(string $a_comment)
Interface ilQTIMaterialAware.
comment()
description: > Example for rendring a comment glyph.
Definition: comment.php:41