mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-19010: In developer debug mode, print information about this page in the footer.
This commit is contained in:
parent
cb4f6179d5
commit
2c0901cb5a
3 changed files with 48 additions and 43 deletions
|
@ -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 =============================================================
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue