ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestEvaluationPassData Class Reference
+ Collaboration diagram for ilTestEvaluationPassData:

Public Member Functions

 __sleep ()
 ilTestEvaluationPassData ()
 Constructor.
 getNrOfAnsweredQuestions ()
 setNrOfAnsweredQuestions ($nrOfAnsweredQuestions)
 getReachedPoints ()
 setReachedPoints ($reachedpoints)
 getMaxPoints ()
 setMaxPoints ($maxpoints)
 getQuestionCount ()
 setQuestionCount ($questioncount)
 getWorkingTime ()
 setWorkingTime ($workingtime)
 getPass ()
 setPass ($a_pass)
 getAnsweredQuestions ()
 addAnsweredQuestion ($question_id, $max_points, $reached_points, $sequence=NULL)
getAnsweredQuestion ($index)
getAnsweredQuestionByQuestionId ($question_id)
 getAnsweredQuestionCount ()

Data Fields

 $answeredQuestions
 $pass

Private Attributes

 $workingtime
 $questioncount
 $maxpoints
 $reachedpoints
 $nrOfAnsweredQuestions

Detailed Description

Definition at line 34 of file class.ilTestEvaluationPassData.php.

Member Function Documentation

ilTestEvaluationPassData::__sleep ( )

Definition at line 85 of file class.ilTestEvaluationPassData.php.

{
return array('answeredQuestions', 'pass', 'nrOfAnsweredQuestions', 'reachedpoints',
'maxpoints', 'questioncount', 'workingtime');
}
ilTestEvaluationPassData::addAnsweredQuestion (   $question_id,
  $max_points,
  $reached_points,
  $sequence = NULL 
)

Definition at line 166 of file class.ilTestEvaluationPassData.php.

{
array_push($this->answeredQuestions, array("id" => $question_id, "points" => round($max_points, 2), "reached" => round($reached_points, 2), "sequence" => $sequence));
}
& ilTestEvaluationPassData::getAnsweredQuestion (   $index)

Definition at line 171 of file class.ilTestEvaluationPassData.php.

{
if (array_key_exists($index, $this->answeredQuestions))
{
return $this->answeredQuestions[$index];
}
else
{
return NULL;
}
}
& ilTestEvaluationPassData::getAnsweredQuestionByQuestionId (   $question_id)

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

{
foreach ($this->answeredQuestions as $question)
{
if ($question["id"] == $question_id)
{
return $question;
}
}
return NULL;
}
ilTestEvaluationPassData::getAnsweredQuestionCount ( )

Definition at line 195 of file class.ilTestEvaluationPassData.php.

{
return count($this->answeredQuestions);
}
ilTestEvaluationPassData::getAnsweredQuestions ( )

Definition at line 161 of file class.ilTestEvaluationPassData.php.

References $answeredQuestions.

ilTestEvaluationPassData::getMaxPoints ( )

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

References $maxpoints.

{
}
ilTestEvaluationPassData::getNrOfAnsweredQuestions ( )
ilTestEvaluationPassData::getPass ( )

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

References $pass.

{
return $this->pass;
}
ilTestEvaluationPassData::getQuestionCount ( )

Definition at line 131 of file class.ilTestEvaluationPassData.php.

References $questioncount.

{
}
ilTestEvaluationPassData::getReachedPoints ( )

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

References $reachedpoints.

{
}
ilTestEvaluationPassData::getWorkingTime ( )

Definition at line 141 of file class.ilTestEvaluationPassData.php.

References $workingtime.

{
}
ilTestEvaluationPassData::ilTestEvaluationPassData ( )

Constructor.

public

Definition at line 96 of file class.ilTestEvaluationPassData.php.

{
$this->answeredQuestions = array();
}
ilTestEvaluationPassData::setMaxPoints (   $maxpoints)

Definition at line 126 of file class.ilTestEvaluationPassData.php.

References $maxpoints.

{
$this->maxpoints = $maxpoints;
}
ilTestEvaluationPassData::setNrOfAnsweredQuestions (   $nrOfAnsweredQuestions)

Definition at line 106 of file class.ilTestEvaluationPassData.php.

References $nrOfAnsweredQuestions.

{
$this->nrOfAnsweredQuestions = $nrOfAnsweredQuestions;
}
ilTestEvaluationPassData::setPass (   $a_pass)

Definition at line 156 of file class.ilTestEvaluationPassData.php.

{
$this->pass = $a_pass;
}
ilTestEvaluationPassData::setQuestionCount (   $questioncount)

Definition at line 136 of file class.ilTestEvaluationPassData.php.

References $questioncount.

{
$this->questioncount = $questioncount;
}
ilTestEvaluationPassData::setReachedPoints (   $reachedpoints)

Definition at line 116 of file class.ilTestEvaluationPassData.php.

References $reachedpoints.

{
$this->reachedpoints = $reachedpoints;
}
ilTestEvaluationPassData::setWorkingTime (   $workingtime)

Definition at line 146 of file class.ilTestEvaluationPassData.php.

References $workingtime.

{
$this->workingtime = $workingtime;
}

Field Documentation

ilTestEvaluationPassData::$answeredQuestions

Definition at line 41 of file class.ilTestEvaluationPassData.php.

Referenced by getAnsweredQuestions().

ilTestEvaluationPassData::$maxpoints
private

Definition at line 62 of file class.ilTestEvaluationPassData.php.

Referenced by getMaxPoints(), and setMaxPoints().

ilTestEvaluationPassData::$nrOfAnsweredQuestions
private
ilTestEvaluationPassData::$pass

Definition at line 83 of file class.ilTestEvaluationPassData.php.

Referenced by getPass().

ilTestEvaluationPassData::$questioncount
private

Definition at line 55 of file class.ilTestEvaluationPassData.php.

Referenced by getQuestionCount(), and setQuestionCount().

ilTestEvaluationPassData::$reachedpoints
private

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

Referenced by getReachedPoints(), and setReachedPoints().

ilTestEvaluationPassData::$workingtime
private

Definition at line 48 of file class.ilTestEvaluationPassData.php.

Referenced by getWorkingTime(), and setWorkingTime().


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