ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 ( )
Returns
string

Definition at line 161 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 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)
Parameters
array$data

Definition at line 193 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.

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

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  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ setDb()

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

Definition at line 89 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 169 of file class.ilAssQuestionSolutionComparisonExpression.php.

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.

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.

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.

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.

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.

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: