ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilQTISection.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
31 public ?string $ident = null;
32 public ?string $title = null;
33 public ?string $xmllang = null;
34 public ?string $comment = null;
36 public ?array $duration = null;
38
39 public function setIdent(string $a_ident): void
40 {
41 $this->ident = $a_ident;
42 }
43
44 public function getIdent(): ?string
45 {
46 return $this->ident;
47 }
48
49 public function setTitle(string $a_title): void
50 {
51 $this->title = $a_title;
52 }
53
54 public function getTitle(): ?string
55 {
56 return $this->title;
57 }
58
59 public function setComment(string $a_comment): void
60 {
61 $this->comment = $a_comment;
62 }
63
64 public function getComment(): ?string
65 {
66 return $this->comment;
67 }
68
69 public function setDuration(string $a_duration): void
70 {
71 if (preg_match("/P(\d+)Y(\d+)M(\d+)DT(\d+)H(\d+)M(\d+)S/", $a_duration, $matches)) {
72 $this->duration = [
73 "h" => $matches[4],
74 "m" => $matches[5],
75 "s" => $matches[6]
76 ];
77 }
78 }
79
83 public function getDuration(): ?array
84 {
85 return $this->duration;
86 }
87
88 public function setXmllang(string $a_xmllang): void
89 {
90 $this->xmllang = $a_xmllang;
91 }
92
93 public function getXmllang(): ?string
94 {
95 return $this->xmllang;
96 }
97
98 public function setPresentationMaterial(ilQTIPresentationMaterial $a_material): void
99 {
100 $this->presentation_material = $a_material;
101 }
102
104 {
106 }
107}
Class ilQTIPresentationMaterial.
setComment(string $a_comment)
setIdent(string $a_ident)
setXmllang(string $a_xmllang)
ilQTIPresentationMaterial $presentation_material
setPresentationMaterial(ilQTIPresentationMaterial $a_material)
setTitle(string $a_title)
setDuration(string $a_duration)