MDL-47494 ddmarker: NOBUG adding method to process questions.

This commit is contained in:
Jamie Pratt
2012-03-31 09:46:23 +07:00
parent 9437265e8b
commit d0c2245757
@@ -60,6 +60,21 @@ abstract class qtype_ddmarker_list_item {
}
}
public function process($progresstrace = null, $depth = 0) {
if (null === $progresstrace) {
$progresstrace = new html_list_progress_trace();
}
$progresstrace->output((string)$this, $depth);
$this->process_children($progresstrace, $depth);
}
protected function process_children($progresstrace, $depth) {
$children = array();
foreach ($this->children as $child) {
$child->process($progresstrace, $depth + 1);
}
}
protected function render_children($stringidentifier, $link) {
$children = array();
foreach ($this->children as $child) {
@@ -313,7 +328,7 @@ if (!$confirm) {
echo $contextlist->render('listitem', true, $top);
}
} else if (confirm_sesskey()) {
$top->process();
}
// Footer.