ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 51 of file class.ilAssQuestionSolutionComparisonExpression.php.

52 {
53 $this->questionId = null;
54 $this->skillBaseId = null;
55 $this->skillTrefId = null;
56 $this->orderIndex = null;
57 $this->expression = null;
58 $this->points = null;
59 }

Member Function Documentation

◆ getDb()

ilAssQuestionSolutionComparisonExpression::getDb ( )

◆ getExpression()

ilAssQuestionSolutionComparisonExpression::getExpression ( )

◆ getOrderIndex()

ilAssQuestionSolutionComparisonExpression::getOrderIndex ( )
Returns
int

Definition at line 145 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 177 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 97 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 113 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 129 of file class.ilAssQuestionSolutionComparisonExpression.php.

References $skillTrefId.

Referenced by save().

+ Here is the caller graph for this function:

◆ initInstanceFromArray()

ilAssQuestionSolutionComparisonExpression::initInstanceFromArray (   $data)

◆ save()

ilAssQuestionSolutionComparisonExpression::save ( )

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

62 {
63 $this->db->replace(
64 'qpl_qst_skl_sol_expr',
65 array(
66 'question_fi' => array('integer', $this->getQuestionId()),
67 'skill_base_fi' => array('integer', $this->getSkillBaseId()),
68 'skill_tref_fi' => array('integer', $this->getSkillTrefId()),
69 'order_index' => array('integer', $this->getOrderIndex())
70 ),
71 array(
72 'expression' => array('text', $this->getExpression()),
73 'points' => array('integer', $this->getPoints())
74 )
75 );
76 }

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

+ Here is the call graph for this function:

◆ setDb()

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

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

90 {
91 $this->db = $db;
92 }

References $db.

Referenced by ilAssQuestionSolutionComparisonExpressionList\add().

+ Here is the caller graph for this function:

◆ setExpression()

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

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

170 {
171 $this->expression = $expression;
172 }

References $expression.

Referenced by initInstanceFromArray().

+ Here is the caller graph for this function:

◆ setOrderIndex()

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

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

154 {
155 $this->orderIndex = $orderIndex;
156 }

References $orderIndex.

Referenced by initInstanceFromArray().

+ Here is the caller graph for this function:

◆ setPoints()

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

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

186 {
187 $this->points = $points;
188 }

References $points.

Referenced by initInstanceFromArray().

+ Here is the caller graph for this function:

◆ setQuestionId()

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

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

106 {
107 $this->questionId = $questionId;
108 }

References $questionId.

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

+ Here is the caller graph for this function:

◆ setSkillBaseId()

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

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

122 {
123 $this->skillBaseId = $skillBaseId;
124 }

References $skillBaseId.

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

+ Here is the caller graph for this function:

◆ setSkillTrefId()

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

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

138 {
139 $this->skillTrefId = $skillTrefId;
140 }

References $skillTrefId.

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

+ Here is the caller graph for this function:

Field Documentation

◆ $db

ilAssQuestionSolutionComparisonExpression::$db
protected

Definition at line 16 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 46 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: