Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
show_evaluation.php File Reference

Namespaces

namespace  evaluation

Functions

 checkMandatoryItems ($item)
 voteFor ($answer_id)

Variables

 $db = new EvaluationDB()
 $lib = new EvalShow()
 $rangeID = ($rangeID) ? $rangeID : $SessSemName[1]
if(empty($rangeID)) $evalID = "evalID"]
 $tree = new EvaluationTreeShowUser( $evalID )
 $eval = $tree->tree->eval
 $evalDB = new EvaluationDB()
 $isPreview = "isPreview"] ? YES : NO
 $votedEarlier = $eval->hasVoted( $auth->auth["uid"] ) && $isPreview == NO
 $votedNow = isset( $_POST["voteButton_x"] ) && $votedEarlier == NO
else $userID = "uid"]
 $br = new HTMpty( "br" )
 $form = new HTM( "form" )
 $titlebar = EvalCommon::createTitle( _("Stud.IP Online-Evaluation"), Assets::image_path('icons/16/white/test.png') )
 $table = new HTM( "table" )
 $mandatories = checkMandatoryItems( $eval )

Function Documentation

checkMandatoryItems (   $item)

checkMandatoryItems: put IDs of mandatory questions into global array $mandatories (or, if the user has voted, the IDs of the mandatory questions, which he did not answer to)

Parameters
objectthe Evaluation object (when called externally).
voteFor (   $answer_id)

vote for an answer of given ID

Parameters
stringthe ID.

Variable Documentation

$br = new HTMpty( "br" )
$db = new EvaluationDB()
$eval = $tree->tree->eval
$evalDB = new EvaluationDB()
if (empty($rangeID)) $evalID = "evalID"]
$form = new HTM( "form" )
$isPreview = "isPreview"] ? YES : NO
$lib = new EvalShow()
$mandatories = checkMandatoryItems( $eval )
$rangeID = ($rangeID) ? $rangeID : $SessSemName[1]
$table = new HTM( "table" )
$titlebar = EvalCommon::createTitle( _("Stud.IP Online-Evaluation"), Assets::image_path('icons/16/white/test.png') )
$tree = new EvaluationTreeShowUser( $evalID )
else $userID = "uid"]
$votedEarlier = $eval->hasVoted( $auth->auth["uid"] ) && $isPreview == NO
$votedNow = isset( $_POST["voteButton_x"] ) && $votedEarlier == NO