ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ 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
$lng
;
104
105
$category
= $this->
getCategory
();
106
if
(strcmp(
'-qpl_qst_formulaquestion_'
.
$category
.
'-'
, $lng->txt(
'qpl_qst_formulaquestion_'
.
$category
)) != 0)
107
{
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
assFormulaQuestionUnitCategory\setId
setId($id)
Definition:
class.assFormulaQuestionUnitCategory.php:50
assFormulaQuestionUnitCategory\getId
getId()
Definition:
class.assFormulaQuestionUnitCategory.php:58
$data
$data
Definition:
test-settings.sample.php:14
assFormulaQuestionUnitCategory\getCategory
getCategory()
Definition:
class.assFormulaQuestionUnitCategory.php:74
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
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
$lng
global $lng
Definition:
privfeed.php:17
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
Modules
TestQuestionPool
classes
class.assFormulaQuestionUnitCategory.php
Generated on Fri Jan 17 2025 19:01:04 for ILIAS by
1.8.13 (using
Doxyfile
)