Stud.IP  5.4
likert_answer.php File Reference

Variables

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

Variable Documentation

◆ $answers

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

◆ $indexMap

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

◆ $response

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

◆ $responseData

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

◆ $statements

$statements = $vote->questiondata['statements'] ?? []