Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
vote_evaluation.php File Reference

Variables

 $etask = $vote->etask
 
 $taskAnswers = $etask->task['answers']
 
 $numTaskAnswers = count($taskAnswers)
 
 $results = array_fill(0, $numTaskAnswers, 0)
 
 $results_users = array_fill(0, $numTaskAnswers, [])
 
if($numTaskAnswers > 0) $ordered_results = $results
 
 $ordered_answer_options = []
 
 $ordered_users = []
 
if(count($vote->answers) >
0 &&$numTaskAnswers > 0) 
opacity = formatReady($etask->description)
 
 id
 
endif $countAnswersforeach($taskAnswers
as $key=> $answer)((int)
$results[$key]/$countAnswers
*100) background 
size = $vote->questionnaire->countAnswers()
 
background position
 
background image
 
background repeat
 

Variable Documentation

$etask = $vote->etask
$numTaskAnswers = count($taskAnswers)
$ordered_answer_options = []
if ($numTaskAnswers > 0) $ordered_results = $results
$ordered_users = []
$results = array_fill(0, $numTaskAnswers, 0)
$results_users = array_fill(0, $numTaskAnswers, [])
$taskAnswers = $etask->task['answers']
id
Initial value:
="questionnaire_<?= $vote->getId() ?>_chart"
class="ct-chart"></div>
<script>
STUDIP.Questionnaire.initVoteEvaluation(
'#questionnaire_<?= $vote->getId() ?>_chart',
<?= json_encode(
[
"series" => [$ordered_results],
]
) ?>,
<?= json_encode(Request::isAjax()) ?>,
<?= json_encode($etask->task['type'] === 'multiple') ?>
)
$etask
Definition: freetext_answer.php:2
if($numTaskAnswers > 0) $ordered_results
Definition: vote_evaluation.php:27
$ordered_answer_options
Definition: vote_evaluation.php:29
static isAjax()
Definition: Request.class.php:685
background image
if (count($vote->answers) > 0 &&$numTaskAnswers > 0) opacity = formatReady($etask->description)
background position
background repeat
endif $countAnswersforeach ($taskAnswers as $key => $answer) ((int) $results[$key]/$countAnswers *100) background size = $vote->questionnaire->countAnswers()