Stud.IP  5.4
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

$numTaskAnswers = count($vote->answers)

◆ $options

$options = $vote->questiondata['options']

◆ $ordered_answer_options

$ordered_answer_options = []

◆ $ordered_results

if ( $numTaskAnswers > 0) $ordered_results = $results

◆ $ordered_users

$ordered_users = []

◆ $results

$results = array_fill(0, $numTaskAnswers, 0)

◆ $results_users

$results_users = array_fill(0, $numTaskAnswers, [])

◆ else

widthif ($filtered !== null && $filtered == $key) ('Zeige wieder alle Ergebnisse ohne Filterung an.') ?>" onclick else = $countAnswers

◆ false

widthif ($filtered !== null && $filtered == $key) ('Zeige wieder alle Ergebnisse ohne Filterung an.') ?>" onclick return false

◆ id

id
Initial value:
="questionnaire_<?= $vote->getId() ?>_chart"
class="ct-chart"></div>
<script>
$(function () {
STUDIP.Questionnaire.initVoteEvaluation(
'#questionnaire_<?= $vote->getId() ?>_chart',
<?= json_encode(
[
"series" => [$ordered_results],
]
) ?>,
<?= json_encode(Request::isAjax()) ?>,
<?= $vote->questiondata['multiplechoice'] ? 'true' : 'false' ?>
);
})
$ordered_answer_options
Definition: vote_evaluation.php:41
static isAjax()
Definition: Request.class.php:727
if($numTaskAnswers > 0) $ordered_results
Definition: vote_evaluation.php:39

◆ image

background image

◆ opacity

if (count( $vote->answers) > 0 &&$numTaskAnswers > 0) opacity = formatReady($vote->questiondata['description'])

◆ position

background position

◆ repeat

background repeat

◆ size

endif $countAnswersforeach ($options as $key => $answer) ( $countAnswers &&isset( $results[ $key])) ? round((int) $results[ $key]/$countAnswers *100) background size = $vote->questionnaire->countAnswers()