ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
class.ilSurveyMaterial.php
Go to the documentation of this file.
1
<?php
2
24
class
ilSurveyMaterial
25
{
26
public
const
MATERIAL_TYPE_INTERNALLINK
= 0;
27
public
const
MATERIAL_TYPE_URL
= 1;
28
public
const
MATERIAL_TYPE_FILE
= 2;
29
protected
array
$data
;
30
31
public
function
__construct
()
32
{
33
$this->data = array(
34
'type'
=> self::MATERIAL_TYPE_INTERNALLINK,
35
'internal_link'
=>
''
,
36
'title'
=>
''
,
37
'url'
=>
''
,
38
'filename'
=>
''
39
);
40
}
41
42
public
function
__set
(
string
$name
,
string
$value): void
43
{
44
$this->data[
$name
] = $value;
45
}
46
47
public
function
__get
(
string
$name
): ?string
48
{
49
if
(array_key_exists(
$name
, $this->data)) {
50
switch
(
$name
) {
51
case
'internal_link'
:
52
case
'import_id'
:
53
case
'material_title'
:
54
case
'text_material'
:
55
case
'file_material'
:
56
case
'external_link'
:
57
return
(strlen($this->data[
$name
])) ? $this->data[
$name
] :
null
;
58
default
:
59
return
$this->data[
$name
];
60
}
61
}
62
return
null
;
63
}
64
}
ilSurveyMaterial
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilSurveyMaterial.php:25
ilSurveyMaterial\MATERIAL_TYPE_INTERNALLINK
const MATERIAL_TYPE_INTERNALLINK
Definition:
class.ilSurveyMaterial.php:26
ilSurveyMaterial\MATERIAL_TYPE_FILE
const MATERIAL_TYPE_FILE
Definition:
class.ilSurveyMaterial.php:28
ilSurveyMaterial\__construct
__construct()
Definition:
class.ilSurveyMaterial.php:31
ilSurveyMaterial\MATERIAL_TYPE_URL
const MATERIAL_TYPE_URL
Definition:
class.ilSurveyMaterial.php:27
ilSurveyMaterial\$data
array $data
Definition:
class.ilSurveyMaterial.php:29
ilSurveyMaterial\__get
__get(string $name)
Definition:
class.ilSurveyMaterial.php:47
ilSurveyMaterial\__set
__set(string $name, string $value)
Definition:
class.ilSurveyMaterial.php:42
$name
if($format !==null) $name
Definition:
metadata.php:247
Modules
SurveyQuestionPool
Material
class.ilSurveyMaterial.php
Generated on Sun Nov 2 2025 22:01:20 for ILIAS by
1.9.4 (using
Doxyfile
)