ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
assFormulaQuestionUnitCategory Class Reference

Formula Question Unit Category. More...

+ Collaboration diagram for assFormulaQuestionUnitCategory:

Public Member Functions

 initFormArray (array $data)
 
 setId (int $id)
 
 getId ()
 
 setCategory (string $category)
 
 getCategory ()
 
 setQuestionFi (int $question_fi)
 
 getQuestionFi ()
 
 getDisplayString ()
 

Private Attributes

int $id = 0
 
string $category = ''
 
int $question_fi = 0
 

Detailed Description

Formula Question Unit Category.

Author
Helmut Schottmüller helmu.nosp@m.t.sc.nosp@m.hottm.nosp@m.uell.nosp@m.er@ma.nosp@m.c.co.nosp@m.m \

Definition at line 26 of file class.assFormulaQuestionUnitCategory.php.

Member Function Documentation

◆ getCategory()

assFormulaQuestionUnitCategory::getCategory ( )

Definition at line 54 of file class.assFormulaQuestionUnitCategory.php.

References $category.

Referenced by getDisplayString(), ilUnitConfigurationRepository\saveCategory(), and ilUnitConfigurationRepository\saveNewUnitCategory().

+ Here is the caller graph for this function:

◆ getDisplayString()

assFormulaQuestionUnitCategory::getDisplayString ( )

Definition at line 69 of file class.assFormulaQuestionUnitCategory.php.

69 : string
70 {
71 global $DIC;
72
73 $lng = $DIC->language();
74
75 $category = $this->getCategory();
76 if (strcmp('-qpl_qst_formulaquestion_' . $category . '-', $lng->txt('qpl_qst_formulaquestion_' . $category)) !== 0) {
77 $category = $lng->txt('qpl_qst_formulaquestion_' . $category);
78 }
79
80 return $category;
81 }
global $lng
Definition: privfeed.php:31
global $DIC
Definition: shib_login.php:26

References $category, $DIC, $lng, and getCategory().

+ Here is the call graph for this function:

◆ getId()

assFormulaQuestionUnitCategory::getId ( )

Definition at line 44 of file class.assFormulaQuestionUnitCategory.php.

References $id.

Referenced by ilUnitConfigurationRepository\saveCategory().

+ Here is the caller graph for this function:

◆ getQuestionFi()

assFormulaQuestionUnitCategory::getQuestionFi ( )

◆ initFormArray()

assFormulaQuestionUnitCategory::initFormArray ( array  $data)

Definition at line 32 of file class.assFormulaQuestionUnitCategory.php.

32 : void
33 {
34 $this->id = (int) $data['category_id'];
35 $this->category = $data['category'];
36 $this->question_fi = (int) $data['question_fi'];
37 }

References $data, and ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ setCategory()

assFormulaQuestionUnitCategory::setCategory ( string  $category)

Definition at line 49 of file class.assFormulaQuestionUnitCategory.php.

49 : void
50 {
51 $this->category = $category;
52 }

References $category.

◆ setId()

assFormulaQuestionUnitCategory::setId ( int  $id)

Definition at line 39 of file class.assFormulaQuestionUnitCategory.php.

39 : void
40 {
41 $this->id = $id;
42 }

References $id.

Referenced by ilUnitConfigurationRepository\saveNewUnitCategory().

+ Here is the caller graph for this function:

◆ setQuestionFi()

assFormulaQuestionUnitCategory::setQuestionFi ( int  $question_fi)

Definition at line 59 of file class.assFormulaQuestionUnitCategory.php.

59 : void
60 {
61 $this->question_fi = $question_fi;
62 }

References $question_fi.

Field Documentation

◆ $category

string assFormulaQuestionUnitCategory::$category = ''
private

◆ $id

int assFormulaQuestionUnitCategory::$id = 0
private

Definition at line 28 of file class.assFormulaQuestionUnitCategory.php.

Referenced by getId(), and setId().

◆ $question_fi

int assFormulaQuestionUnitCategory::$question_fi = 0
private

Definition at line 30 of file class.assFormulaQuestionUnitCategory.php.

Referenced by getQuestionFi(), and setQuestionFi().


The documentation for this class was generated from the following file: