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