Stud.IP  4.2 Revision
show_evaluation.php File Reference

Namespaces

 evaluation
 

Functions

 checkMandatoryItems ( $item)
 
 voteFor ( $answer_id)
 

Variables

 $db = new EvaluationDB()
 
 $lib = new EvalShow()
 
 $rangeID = Request::option('rangeID',Context::getId())
 
if(empty($rangeID)) $evalID = Request::option('evalID')
 
 $tree = new EvaluationTreeShowUser( $evalID )
 
 $eval = $tree->tree->eval
 
 $evalDB = new EvaluationDB()
 
 $isPreview = Request::option('isPreview') ? YES : NO
 
 $votedEarlier = $eval->hasVoted( $auth->auth["uid"] ) && $isPreview == NO
 
 $votedNow = Request::submitted('voteButton') && $votedEarlier == NO
 
else $userID = $auth->auth["uid"]
 
 $br = new HTMpty( "br" )
 
 $form = new HTM( "form" )
 
if(Request::isXHR()) else
 
 $table = new HTM( "table" )
 
 $mandatories = checkMandatoryItems( $eval )
 
 $answers = Request::quotedArray('answers')
 
$layout content_for_layout = $form->createContent()
 

Function Documentation

◆ checkMandatoryItems()

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).
Here is the call graph for this function:

◆ voteFor()

voteFor (   $answer_id)

vote for an answer of given ID

Parameters
stringthe ID.

Variable Documentation

◆ $answers

◆ $br

$br = new HTMpty( "br" )

◆ $db

$db = new EvaluationDB()

◆ $eval

$eval = $tree->tree->eval

◆ $evalDB

$evalDB = new EvaluationDB()

◆ $evalID

if (empty( $rangeID)) $evalID = Request::option('evalID')

◆ $form

$form = new HTM( "form" )

◆ $isPreview

$isPreview = Request::option('isPreview') ? YES : NO

◆ $lib

$lib = new EvalShow()

◆ $mandatories

$mandatories = checkMandatoryItems( $eval )

◆ $rangeID

$rangeID = Request::option('rangeID',Context::getId())

◆ $table

$table = new HTM( "table" )

◆ $tree

$tree = new EvaluationTreeShowUser( $evalID )

◆ $userID

else $userID = $auth->auth["uid"]

◆ $votedEarlier

$votedEarlier = $eval->hasVoted( $auth->auth["uid"] ) && $isPreview == NO

◆ $votedNow

$votedNow = Request::submitted('voteButton') && $votedEarlier == NO

◆ content_for_layout

$layout content_for_layout = $form->createContent()

◆ else

if (Request::isXHR()) else
Initial value:
{
$titlebar = EvalCommon::createTitle( _("Stud.IP Online-Evaluation"), Icon::create('test', 'info_alt')->asImagePath() )
static create($shape, $role=Icon::DEFAULT_ROLE, $attributes=array())
Definition: Icon.class.php:101
static createTitle($title, $iconURL="", $padding=0)
Definition: evaluation.lib.php:55