Function __global->render_quiz

Definitions

sources/quiz.php

  • Get quiz data for exporting it as a spreadsheet.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$questions array No No required parameter N/A N/A The quiz questions

Returns

  • The rendered quiz
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get quiz data for exporting it as a spreadsheet.
 *
 * @param  array $questions The quiz questions
 * @return Tempcode The rendered quiz
 */

function render_quiz(array $questions) : object