ILIAS  release_8 Revision v8.24
class.ilQTIPresentation.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
31{
32 public ?string $label = null;
33 public ?string $xmllang = null;
34 public ?string $x0 = null;
35 public ?string $y0 = null;
36 public ?string $width = null;
37 public ?string $height = null;
38
40 public array $material = [];
41
45 public array $response = [];
46
50 public array $order = [];
51
52 public function setLabel(string $a_label): void
53 {
54 $this->label = $a_label;
55 }
56
57 public function getLabel(): ?string
58 {
59 return $this->label;
60 }
61
62 public function setXmllang(string $a_xmllang): void
63 {
64 $this->xmllang = $a_xmllang;
65 }
66
67 public function getXmllang(): ?string
68 {
69 return $this->xmllang;
70 }
71
72 public function setX0(string $a_x0): void
73 {
74 $this->x0 = $a_x0;
75 }
76
77 public function getX0(): ?string
78 {
79 return $this->x0;
80 }
81
82 public function setY0(string $a_y0): void
83 {
84 $this->y0 = $a_y0;
85 }
86
87 public function getY0(): ?string
88 {
89 return $this->y0;
90 }
91
92 public function setWidth(string $a_width): void
93 {
94 $this->width = $a_width;
95 }
96
97 public function getWidth(): ?string
98 {
99 return $this->width;
100 }
101
102 public function setHeight(string $a_height): void
103 {
104 $this->height = $a_height;
105 }
106
107 public function getHeight(): ?string
108 {
109 return $this->height;
110 }
111
112 public function addMaterial(ilQTIMaterial $a_material): void
113 {
114 $count = array_push($this->material, $a_material);
115 $this->order[] = array("type" => "material", "index" => $count - 1);
116 }
117
118 public function addResponse(ilQTIResponse $a_response): void
119 {
120 $count = array_push($this->response, $a_response);
121 $this->order[] = array("type" => "response", "index" => $count - 1);
122 }
123}
addMaterial(ilQTIMaterial $a_material)
setHeight(string $a_height)
setXmllang(string $a_xmllang)
addResponse(ilQTIResponse $a_response)