ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAssQuestionSolutionComparisonExpression Class Reference
+ Collaboration diagram for ilAssQuestionSolutionComparisonExpression:

Public Member Functions

 __construct ()
 Constructor. More...
 
 save ()
 
 getDb ()
 
 setDb ($db)
 
 getQuestionId ()
 
 setQuestionId ($questionId)
 
 getSkillBaseId ()
 
 setSkillBaseId ($skillBaseId)
 
 getSkillTrefId ()
 
 setSkillTrefId ($skillTrefId)
 
 getOrderIndex ()
 
 setOrderIndex ($orderIndex)
 
 getExpression ()
 
 setExpression ($expression)
 
 getPoints ()
 
 setPoints ($points)
 
 initInstanceFromArray ($data)
 

Protected Attributes

 $db
 

Private Attributes

 $questionId
 
 $skillBaseId
 
 $skillTrefId
 
 $orderIndex
 
 $expression
 
 $points
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilAssQuestionSolutionComparisonExpression::__construct ( )

Constructor.

Definition at line 65 of file class.ilAssQuestionSolutionComparisonExpression.php.

References null.

66  {
67  $this->questionId = null;
68  $this->skillBaseId = null;
69  $this->skillTrefId = null;
70  $this->orderIndex = null;
71  $this->expression = null;
72  $this->points = null;
73  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

Member Function Documentation

◆ getDb()

ilAssQuestionSolutionComparisonExpression::getDb ( )

◆ getExpression()

ilAssQuestionSolutionComparisonExpression::getExpression ( )
Returns
string

Definition at line 175 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $expression.

Referenced by save(), and ilAssQuestionSkillAssignmentsGUI\validateSolutionCompareExpression().

+ Here is the caller graph for this function:

◆ getOrderIndex()

ilAssQuestionSolutionComparisonExpression::getOrderIndex ( )
Returns
int

Definition at line 159 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $orderIndex.

Referenced by ilAssQuestionSolutionComparisonExpressionList\add(), and save().

+ Here is the caller graph for this function:

◆ getPoints()

ilAssQuestionSolutionComparisonExpression::getPoints ( )
Returns
int

Definition at line 191 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $points.

Referenced by save().

+ Here is the caller graph for this function:

◆ getQuestionId()

ilAssQuestionSolutionComparisonExpression::getQuestionId ( )
Returns
int

Definition at line 111 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $questionId.

Referenced by save().

+ Here is the caller graph for this function:

◆ getSkillBaseId()

ilAssQuestionSolutionComparisonExpression::getSkillBaseId ( )
Returns
int

Definition at line 127 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $skillBaseId.

Referenced by save().

+ Here is the caller graph for this function:

◆ getSkillTrefId()

ilAssQuestionSolutionComparisonExpression::getSkillTrefId ( )
Returns
int

Definition at line 143 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $skillTrefId.

Referenced by save().

+ Here is the caller graph for this function:

◆ initInstanceFromArray()

ilAssQuestionSolutionComparisonExpression::initInstanceFromArray (   $data)
Parameters
array$data

Definition at line 207 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $data, setExpression(), setOrderIndex(), setPoints(), setQuestionId(), setSkillBaseId(), and setSkillTrefId().

+ Here is the call graph for this function:

◆ save()

ilAssQuestionSolutionComparisonExpression::save ( )

Definition at line 75 of file class.ilAssQuestionSolutionComparisonExpression.php.

References getExpression(), getOrderIndex(), getPoints(), getQuestionId(), getSkillBaseId(), and getSkillTrefId().

75  : void
76  {
77  $this->db->replace(
78  'qpl_qst_skl_sol_expr',
79  [
80  'question_fi' => ['integer', $this->getQuestionId()],
81  'skill_base_fi' => ['integer', $this->getSkillBaseId()],
82  'skill_tref_fi' => ['integer', $this->getSkillTrefId()],
83  'order_index' => ['integer', $this->getOrderIndex()]
84  ],
85  [
86  'expression' => ['text', $this->getExpression()],
87  'points' => ['integer', $this->getPoints()]
88  ]
89  );
90  }
+ Here is the call graph for this function:

◆ setDb()

ilAssQuestionSolutionComparisonExpression::setDb (   $db)
Parameters
ilDBInterface$db

Definition at line 103 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $db.

Referenced by ilAssQuestionSolutionComparisonExpressionList\add().

+ Here is the caller graph for this function:

◆ setExpression()

ilAssQuestionSolutionComparisonExpression::setExpression (   $expression)
Parameters
string$expression

Definition at line 183 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $expression.

Referenced by initInstanceFromArray().

183  : void
184  {
185  $this->expression = $expression;
186  }
+ Here is the caller graph for this function:

◆ setOrderIndex()

ilAssQuestionSolutionComparisonExpression::setOrderIndex (   $orderIndex)
Parameters
int$orderIndex

Definition at line 167 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $orderIndex.

Referenced by initInstanceFromArray().

167  : void
168  {
169  $this->orderIndex = $orderIndex;
170  }
+ Here is the caller graph for this function:

◆ setPoints()

ilAssQuestionSolutionComparisonExpression::setPoints (   $points)
Parameters
int$points

Definition at line 199 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $points.

Referenced by initInstanceFromArray().

+ Here is the caller graph for this function:

◆ setQuestionId()

ilAssQuestionSolutionComparisonExpression::setQuestionId (   $questionId)
Parameters
int$questionId

Definition at line 119 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $questionId.

Referenced by ilAssQuestionSolutionComparisonExpressionList\add(), and initInstanceFromArray().

119  : void
120  {
121  $this->questionId = $questionId;
122  }
+ Here is the caller graph for this function:

◆ setSkillBaseId()

ilAssQuestionSolutionComparisonExpression::setSkillBaseId (   $skillBaseId)
Parameters
int$skillBaseId

Definition at line 135 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $skillBaseId.

Referenced by ilAssQuestionSolutionComparisonExpressionList\add(), and initInstanceFromArray().

135  : void
136  {
137  $this->skillBaseId = $skillBaseId;
138  }
+ Here is the caller graph for this function:

◆ setSkillTrefId()

ilAssQuestionSolutionComparisonExpression::setSkillTrefId (   $skillTrefId)
Parameters
int$skillTrefId

Definition at line 151 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $skillTrefId.

Referenced by ilAssQuestionSolutionComparisonExpressionList\add(), and initInstanceFromArray().

151  : void
152  {
153  $this->skillTrefId = $skillTrefId;
154  }
+ Here is the caller graph for this function:

Field Documentation

◆ $db

ilAssQuestionSolutionComparisonExpression::$db
protected

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

Referenced by getDb(), and setDb().

◆ $expression

ilAssQuestionSolutionComparisonExpression::$expression
private

◆ $orderIndex

ilAssQuestionSolutionComparisonExpression::$orderIndex
private

◆ $points

ilAssQuestionSolutionComparisonExpression::$points
private

Definition at line 60 of file class.ilAssQuestionSolutionComparisonExpression.php.

Referenced by getPoints(), and setPoints().

◆ $questionId

ilAssQuestionSolutionComparisonExpression::$questionId
private

◆ $skillBaseId

ilAssQuestionSolutionComparisonExpression::$skillBaseId
private

◆ $skillTrefId

ilAssQuestionSolutionComparisonExpression::$skillTrefId
private

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