MDL-44629 Assignment: add facility for displaying plugin-specific headers

This commit is contained in:
Henning Bostelmann
2014-04-07 11:34:26 +01:00
parent 1a727e121e
commit af904bd75b
4 changed files with 49 additions and 0 deletions
+20
View File
@@ -579,6 +579,26 @@ class assign_header implements renderable {
}
}
/**
* Renderable header related to an individual subplugin
* @package mod_assign
* @copyright 2014 Henning Bostelmann
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class assign_plugin_header implements renderable {
/** @var assign_plugin $plugin */
public $plugin = null;
/**
* Header for a single plugin
*
* @param assign_plugin $plugin
*/
public function __construct(assign_plugin $plugin) {
$this->plugin = $plugin;
}
}
/**
* Renderable grading summary
* @package mod_assign