MDL-19010: In developer debug mode, print information about this page in the footer.

This commit is contained in:
tjhunt 2009-07-20 06:18:16 +00:00
parent cb4f6179d5
commit 2c0901cb5a
3 changed files with 48 additions and 43 deletions

View file

@ -482,6 +482,18 @@ class moodle_page {
return has_any_capability($this->all_editing_caps(), $this->context);
}
/**
* @return string a description of this page (context, page-type and sub-page.
*/
public function debug_summary() {
$summary = 'Context ' . print_context_name($this->context) . ' (context id ' . $this->context->id . '). ';
$summary .= 'Page type ' . $this->pagetype . '. ';
if ($this->subpage) {
'Sub-page ' . $this->subpage . '. ';
}
return $summary;
}
/// Setter methods =============================================================
/**