ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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().

54  : string
55  {
56  return $this->category;
57  }
+ Here is the caller graph for this function:

◆ getDisplayString()

assFormulaQuestionUnitCategory::getDisplayString ( )

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

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

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 $DIC
Definition: shib_login.php:22
global $lng
Definition: privfeed.php:31
+ 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().

44  : int
45  {
46  return $this->id;
47  }
+ Here is the caller graph for this function:

◆ getQuestionFi()

assFormulaQuestionUnitCategory::getQuestionFi ( )

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

References $question_fi.

◆ initFormArray()

assFormulaQuestionUnitCategory::initFormArray ( array  $data)

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

References ILIAS\Repository\int().

32  : void
33  {
34  $this->id = (int) $data['category_id'];
35  $this->category = $data['category'];
36  $this->question_fi = (int) $data['question_fi'];
37  }
+ Here is the call graph for this function:

◆ setCategory()

assFormulaQuestionUnitCategory::setCategory ( string  $category)

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

References $category.

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

◆ setId()

assFormulaQuestionUnitCategory::setId ( int  $id)

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

References $id.

Referenced by ilUnitConfigurationRepository\saveNewUnitCategory().

39  : void
40  {
41  $this->id = $id;
42  }
+ Here is the caller graph for this function:

◆ setQuestionFi()

assFormulaQuestionUnitCategory::setQuestionFi ( int  $question_fi)

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

References $question_fi.

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

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: