MDL-46718: Return user to last accessed page when quick grading

This commit is contained in:
Gregory Faller 2014-08-08 14:48:13 +09:30
parent 753493ae11
commit f707b67259
4 changed files with 16 additions and 3 deletions

View file

@ -74,12 +74,14 @@ class assign_gradingmessage implements renderable {
* @param string $message This is the message to display
* @param bool $gradingerror Set to true to display the message as an error.
* @param int $coursemoduleid
* @param int $page This is the current quick grading page
*/
public function __construct($heading, $message, $coursemoduleid, $gradingerror = false) {
public function __construct($heading, $message, $coursemoduleid, $gradingerror = false, $page = null) {
$this->heading = $heading;
$this->message = $message;
$this->coursemoduleid = $coursemoduleid;
$this->gradingerror = $gradingerror;
$this->page = $page;
}
}