|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| fatal_error ($message, $moreinfourl, $link, $backtrace, $debuginfo=null) | |
| notification ($message, $classes= 'notifyproblem') | |
| redirect_message ($encodedurl, $message, $delay, $debugdisableredirect) | |
| header () | |
| footer () | |
| heading ($text, $level=2, $classes= 'main', $id=null) | |
A renderer that generates output for ajax scripts.
This renderer prevents accidental sends back only json encoded error messages, all other output is ignored.
Definition at line 2660 of file outputrenderers.php.
| fatal_error | ( | $ | message, |
| $ | moreinfourl, | ||
| $ | link, | ||
| $ | backtrace, | ||
| $ | debuginfo = null |
||
| ) |
Returns a template fragment representing a fatal error.
| string | $message | The message to output |
| string | $moreinfourl | URL where more info can be found about the error |
| string | $link | Link for the Continue button |
| array | $backtrace | The execution backtrace |
| string | $debuginfo | Debugging information |
Reimplemented from core_renderer.
Definition at line 2670 of file outputrenderers.php.

| footer | ( | ) |
Outputs the page's footer
Reimplemented from core_renderer.
Definition at line 2716 of file outputrenderers.php.
| header | ( | ) |
Start output by sending the HTTP headers, and printing the HTML <head> and the start of the <body>.
To control what is printed, you should set properties on $PAGE. If you are familiar with the old print_header() function from Moodle 1.9 you will find that there are properties on $PAGE that correspond to most of the old parameters to could be passed to print_header.
Not that, in due course, the remaining $navigation, $menu parameters here will be replaced by more properties of $PAGE, but that is still to do.
Do NOT use, please use <?php echo $OUTPUT->main_content() ?> in layout files instead.
Headers to make it not cacheable and json
Reimplemented from core_renderer.
Definition at line 2699 of file outputrenderers.php.

| heading | ( | $ | text, |
| $ | level = 2, |
||
| $ | classes = 'main', |
||
| $ | id = null |
||
| ) |
Outputs a heading
| string | $text | The text of the heading |
| int | $level | The level of importance of the heading. Defaulting to 2 |
| string | $classes | A space-separated list of CSS classes |
| string | $id | An optional ID |
Reimplemented from core_renderer.
Definition at line 2719 of file outputrenderers.php.
| notification | ( | $ | message, |
| $ | classes = 'notifyproblem' |
||
| ) |
Output a notification (that is, a status message about something that has just happened).
| string | $message | the message to print out |
| string | $classes | normally 'notifyproblem' or 'notifysuccess'. |
Reimplemented from core_renderer.
Definition at line 2693 of file outputrenderers.php.
| redirect_message | ( | $ | encodedurl, |
| $ | message, | ||
| $ | delay, | ||
| $ | debugdisableredirect | ||
| ) |
Redirects the user by any means possible given the current state
This function should not be called directly, it should always be called using the redirect function in lib/weblib.php
The redirect function should really only be called before page output has started however it will allow itself to be called during the state STATE_IN_BODY
| string | $encodedurl | The URL to send to encoded if required |
| string | $message | The message to display to the user if any |
| int | $delay | The delay before redirecting a user, if $message has been set this is a requirement and defaults to 3, set to 0 no delay |
| boolean | $debugdisableredirect | this redirect has been disabled for debugging purposes. Display a message that explains, and don't trigger the redirect. |
Reimplemented from core_renderer.
Definition at line 2696 of file outputrenderers.php.