ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 144 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 176 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 96 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 112 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 128 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 192 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 61 of file class.ilAssQuestionSolutionComparisonExpression.php.

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

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

+ Here is the call graph for this function:

◆ setDb()

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

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

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

References $db.

Referenced by ilAssQuestionSolutionComparisonExpressionList\add().

+ Here is the caller graph for this function:

◆ setExpression()

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

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

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

References $expression.

Referenced by initInstanceFromArray().

+ Here is the caller graph for this function:

◆ setOrderIndex()

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

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

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

References $orderIndex.

Referenced by initInstanceFromArray().

+ Here is the caller graph for this function:

◆ setPoints()

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

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

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

References $points.

Referenced by initInstanceFromArray().

+ Here is the caller graph for this function:

◆ setQuestionId()

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

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

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

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 120 of file class.ilAssQuestionSolutionComparisonExpression.php.

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

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 136 of file class.ilAssQuestionSolutionComparisonExpression.php.

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

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: