ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.assFormulaQuestionUnitCategory.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11
class
assFormulaQuestionUnitCategory
12
{
16
private
$id
= 0;
17
21
private
$category
=
''
;
22
26
private
$question_fi
= 0;
27
33
public
function
__construct
()
34
{
35
}
36
40
public
function
initFormArray
(array
$data
)
41
{
42
$this->
id
= $data[
'category_id'
];
43
$this->category = $data[
'category'
];
44
$this->question_fi = $data[
'question_fi'
];
45
}
46
50
public
function
setId
(
$id
)
51
{
52
$this->
id
=
$id
;
53
}
54
58
public
function
getId
()
59
{
60
return
$this->id
;
61
}
62
66
public
function
setCategory
(
$category
)
67
{
68
$this->category =
$category
;
69
}
70
74
public
function
getCategory
()
75
{
76
return
$this->category
;
77
}
78
82
public
function
setQuestionFi
(
$question_fi
)
83
{
84
$this->question_fi =
$question_fi
;
85
}
86
90
public
function
getQuestionFi
()
91
{
92
return
$this->question_fi
;
93
}
94
98
public
function
getDisplayString()
99
{
103
global
$DIC
;
104
$lng
= $DIC[
'lng'
];
105
106
$category
= $this->
getCategory
();
107
if
(strcmp(
'-qpl_qst_formulaquestion_'
.
$category
.
'-'
,
$lng
->txt(
'qpl_qst_formulaquestion_'
.
$category
)) != 0) {
108
$category
=
$lng
->txt(
'qpl_qst_formulaquestion_'
.
$category
);
109
}
110
return
$category
;
111
}
112
}
assFormulaQuestionUnitCategory\$category
$category
Definition:
class.assFormulaQuestionUnitCategory.php:21
assFormulaQuestionUnitCategory
Formula Question Unit Category.
Definition:
class.assFormulaQuestionUnitCategory.php:11
assFormulaQuestionUnitCategory\$question_fi
$question_fi
Definition:
class.assFormulaQuestionUnitCategory.php:26
$DIC
global $DIC
Definition:
saml.php:7
assFormulaQuestionUnitCategory\setId
setId($id)
Definition:
class.assFormulaQuestionUnitCategory.php:50
$lng
$lng
Definition:
save_question_post_data.php:23
assFormulaQuestionUnitCategory\getId
getId()
Definition:
class.assFormulaQuestionUnitCategory.php:58
assFormulaQuestionUnitCategory\getCategory
getCategory()
Definition:
class.assFormulaQuestionUnitCategory.php:74
assFormulaQuestionUnitCategory\setQuestionFi
setQuestionFi($question_fi)
Definition:
class.assFormulaQuestionUnitCategory.php:82
assFormulaQuestionUnitCategory\$id
$id
Definition:
class.assFormulaQuestionUnitCategory.php:16
assFormulaQuestionUnitCategory\setCategory
setCategory($category)
Definition:
class.assFormulaQuestionUnitCategory.php:66
php
assFormulaQuestionUnitCategory\__construct
__construct()
Definition:
class.assFormulaQuestionUnitCategory.php:33
assFormulaQuestionUnitCategory\initFormArray
initFormArray(array $data)
Definition:
class.assFormulaQuestionUnitCategory.php:40
assFormulaQuestionUnitCategory\getQuestionFi
getQuestionFi()
Definition:
class.assFormulaQuestionUnitCategory.php:90
$data
$data
Definition:
bench.php:6
Modules
TestQuestionPool
classes
class.assFormulaQuestionUnitCategory.php
Generated on Thu Jan 16 2025 19:02:12 for ILIAS by
1.8.13 (using
Doxyfile
)