ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
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}
$data
global $lng
Definition: privfeed.php:40