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

Variables

 $options = $vote->questiondata['options']
 
 $numTaskAnswers = count($vote->answers)
 
 $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($vote->questiondata['description'])
 
 id
 
endif $countAnswersforeach($options
as $key=> $answer)($countAnswers
&&isset($results[$key]))?round((int)
$results[$key]/$countAnswers
*100) background 
size = $vote->questionnaire->countAnswers()
 
background position
 
background image
 
background repeat
 
widthif($filtered!==null
&&$filtered==$key)('Zeige
wieder alle Ergebnisse ohne
Filterung an.')?>" onclick 
else = $countAnswers
 
widthif($filtered!==null
&&$filtered==$key)('Zeige
wieder alle Ergebnisse ohne
Filterung an.')?>" onclick
return 
false
 

Variable Documentation

$numTaskAnswers = count($vote->answers)
$options = $vote->questiondata['options']
$ordered_answer_options = []
if ($numTaskAnswers > 0) $ordered_results = $results
$ordered_users = []
$results = array_fill(0, $numTaskAnswers, 0)
$results_users = array_fill(0, $numTaskAnswers, [])
widthif ($filtered !== null && $filtered == $key) ('Zeige wieder alle Ergebnisse ohne Filterung an.') ?>" onclick else = $countAnswers
widthif ($filtered !== null && $filtered == $key) ('Zeige wieder alle Ergebnisse ohne Filterung an.') ?>" onclick return false
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($vote->questiondata['type'] === 'multiple') ?>
)
if($numTaskAnswers > 0) $ordered_results
Definition: vote_evaluation.php:36
$ordered_answer_options
Definition: vote_evaluation.php:38
static isAjax()
Definition: Request.class.php:727
background image
if (count($vote->answers) > 0 &&$numTaskAnswers > 0) opacity = formatReady($vote->questiondata['description'])
background position
background repeat
endif $countAnswersforeach ($options as $key => $answer) ($countAnswers &&isset($results[$key]))?round((int) $results[$key]/$countAnswers *100) background size = $vote->questionnaire->countAnswers()