[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/question/type/multichoice/ -> renderer.php (summary)

Multiple choice question renderer classes.

Copyright: 2009 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 314 lines (11 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 2 classes

qtype_multichoice_single_renderer:: (7 methods):
  get_input_type()
  get_input_name()
  get_input_value()
  get_input_id()
  is_right()
  prompt()
  correct_response()

qtype_multichoice_multi_renderer:: (8 methods):
  get_input_type()
  get_input_name()
  get_input_value()
  get_input_id()
  is_right()
  prompt()
  correct_response()
  num_parts_correct()

Defines 8 functions

  formulation_and_controls()
  number_html()
  number_in_style()
  specific_feedback()
  correct_choices()

Class: qtype_multichoice_single_renderer  - X-Ref

Subclass for generating the bits of output specific to multiple choice
single questions.

get_input_type()   X-Ref
No description

get_input_name(question_attempt $qa, $value)   X-Ref
No description

get_input_value($value)   X-Ref
No description

get_input_id(question_attempt $qa, $value)   X-Ref
No description

is_right(question_answer $ans)   X-Ref
No description

prompt()   X-Ref
No description

correct_response(question_attempt $qa)   X-Ref
No description

Class: qtype_multichoice_multi_renderer  - X-Ref

Subclass for generating the bits of output specific to multiple choice
multi=select questions.

get_input_type()   X-Ref
No description

get_input_name(question_attempt $qa, $value)   X-Ref
No description

get_input_value($value)   X-Ref
No description

get_input_id(question_attempt $qa, $value)   X-Ref
No description

is_right(question_answer $ans)   X-Ref
No description

prompt()   X-Ref
No description

correct_response(question_attempt $qa)   X-Ref
No description

num_parts_correct(question_attempt $qa)   X-Ref
No description

Functions
Functions that are not part of a class:

formulation_and_controls(question_attempt $qa,question_display_options $options)   X-Ref
No description

number_html($qnum)   X-Ref
No description

number_in_style($num, $style)   X-Ref

param: int $num The number, starting at 0.
param: string $style The style to render the number in. One of the
return: string the number $num in the requested style.

specific_feedback(question_attempt $qa)   X-Ref
No description

correct_choices(array $right)   X-Ref
Function returns string based on number of correct answers

param: array $right An Array of correct responses to the current question
return: string based on number of correct responses



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1