ILIAS  release_8 Revision v8.24
class.ilQTISection.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
31{
32 public ?string $ident = null;
33 public ?string $title = null;
34 public ?string $xmllang = null;
35 public ?string $comment = null;
37 public ?array $duration = null;
39
40 public function setIdent(string $a_ident): void
41 {
42 $this->ident = $a_ident;
43 }
44
45 public function getIdent(): ?string
46 {
47 return $this->ident;
48 }
49
50 public function setTitle(string $a_title): void
51 {
52 $this->title = $a_title;
53 }
54
55 public function getTitle(): ?string
56 {
57 return $this->title;
58 }
59
60 public function setComment(string $a_comment): void
61 {
62 $this->comment = $a_comment;
63 }
64
65 public function getComment(): ?string
66 {
67 return $this->comment;
68 }
69
70 public function setDuration(string $a_duration): void
71 {
72 if (preg_match("/P(\d+)Y(\d+)M(\d+)DT(\d+)H(\d+)M(\d+)S/", $a_duration, $matches)) {
73 $this->duration = array(
74 "h" => $matches[4],
75 "m" => $matches[5],
76 "s" => $matches[6]
77 );
78 }
79 }
80
84 public function getDuration(): ?array
85 {
86 return $this->duration;
87 }
88
89 public function setXmllang(string $a_xmllang): void
90 {
91 $this->xmllang = $a_xmllang;
92 }
93
94 public function getXmllang(): ?string
95 {
96 return $this->xmllang;
97 }
98
99 public function setPresentationMaterial(ilQTIPresentationMaterial $a_material): void
100 {
101 $this->presentation_material = $a_material;
102 }
103
105 {
107 }
108}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)