MDL-27979 Should be an edit link for each question when previewing or reviewing a quiz.

This commit is contained in:
Tim Hunt 2011-06-22 21:07:40 +01:00
parent 3552484b91
commit da72991636
7 changed files with 103 additions and 18 deletions

View file

@ -505,6 +505,20 @@ class question_display_options {
*/
public $history = self::HIDDEN;
/**
* If not empty, then a link to edit the question will be included in
* the info box for the question.
*
* If used, this array must contain an element courseid or cmid.
*
* It shoudl also contain a parameter returnurl => moodle_url giving a
* sensible URL to go back to when the editing form is submitted or cancelled.
*
* @var array url parameter for the edit link. id => questiosnid will be
* added automatically.
*/
public $editquestionparams = array();
/**
* @var int the context the attempt being output belongs to.
*/