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

Public Member Functions

 __sleep ()
 __construct ()
 Constructor.
 __destruct ()
 unsetAnsweredQuestions ()
 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.

Constructor & Destructor Documentation

ilTestEvaluationPassData::__construct ( )

Constructor.

public

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

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

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

References unsetAnsweredQuestions().

{
}

+ Here is the call graph for this function:

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 177 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 182 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 194 of file class.ilTestEvaluationPassData.php.

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

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

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

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

References $answeredQuestions.

ilTestEvaluationPassData::getMaxPoints ( )

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

References $maxpoints.

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

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

References $pass.

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

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

References $questioncount.

{
}
ilTestEvaluationPassData::getReachedPoints ( )

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

References $reachedpoints.

{
}
ilTestEvaluationPassData::getWorkingTime ( )

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

References $workingtime.

{
}
ilTestEvaluationPassData::setMaxPoints (   $maxpoints)

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

References $maxpoints.

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

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

References $nrOfAnsweredQuestions.

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

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

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

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

References $questioncount.

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

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

References $reachedpoints.

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

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

References $workingtime.

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

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

Referenced by __destruct().

{
unset($this->answeredQuestions);
$this->answeredQuestions = array();
}

+ Here is the caller graph for this function:

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: