Stud.IP  5.4
vote_answer.php File Reference

Variables

 $answers = $vote->questiondata['options']
 
 $indexMap = count($answers) ? range(0, count($answers) - 1) : []
 
if($vote->questiondata['randomize']) $response = $vote->getMyAnswer()
 
 $responseData = $response['answerdata'] ? $response['answerdata']->getArrayCopy() : []
 

Variable Documentation

◆ $answers

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

◆ $indexMap

$indexMap = count($answers) ? range(0, count($answers) - 1) : []

◆ $response

if ( $vote->questiondata[ 'randomize']) $response = $vote->getMyAnswer()

◆ $responseData

$responseData = $response['answerdata'] ? $response['answerdata']->getArrayCopy() : []