Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]
Moodle renderer used to display special elements of the lesson module
Copyright: | 2009 Sam Hemelryk |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 688 lines (29 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
mod_lesson_renderer:: (23 methods):
header()
footer()
lesson_inaccessible()
login_prompt()
dependancy_errors()
message()
continue_links()
display_page()
display_edit_collapsed()
display_edit_full()
add_page_links()
add_first_page_links()
page_action_links()
ongoing_score()
progress_bar()
slideshow_start()
slideshow_end()
paragraph()
display_eol_page()
render_override_action_menu()
render_edit_action_buttons()
render_edit_action_area()
render_report_action_menu()
Class: mod_lesson_renderer - X-Ref
header($lesson, $cm, $currenttab = '', $extraeditbuttons = false, $lessonpageid = null, $extrapagetitle = null) X-Ref |
Returns the header for the lesson module return: string param: lesson $lesson a lesson object. param: string $currenttab current tab that is shown. param: bool $extraeditbuttons if extra edit buttons should be displayed. param: int $lessonpageid id of the lesson page that needs to be displayed. param: string $extrapagetitle String to appent to the page title. |
footer() X-Ref |
Returns the footer return: string |
lesson_inaccessible($message) X-Ref |
Returns HTML for a lesson inaccessible message return: <type> param: string $message |
login_prompt(lesson $lesson, $failedattempt = false) X-Ref |
Returns HTML to prompt the user to log in return: string param: lesson $lesson param: bool $failedattempt |
dependancy_errors($dependentlesson, $errors) X-Ref |
Returns HTML to display dependancy errors return: string param: object $dependentlesson param: array $errors |
message($message, single_button $button = null) X-Ref |
Returns HTML to display a message return: string param: string $message param: single_button $button |
continue_links(lesson $lesson, $lastpageseenid) X-Ref |
Returns HTML to display a continue button return: string param: lesson $lesson param: int $lastpageseen |
display_page(lesson $lesson, lesson_page $page, $attempt) X-Ref |
Returns HTML to display a page to the user return: string param: lesson $lesson param: lesson_page $page param: object $attempt |
display_edit_collapsed(lesson $lesson, $pageid) X-Ref |
Returns HTML to display a collapsed edit form return: string param: lesson $lesson param: int $pageid |
display_edit_full(lesson $lesson, $pageid, $prevpageid, $single=false) X-Ref |
Returns HTML to display the full edit page return: string param: lesson $lesson param: int $pageid param: int $prevpageid param: bool $single |
add_page_links(lesson $lesson, $prevpageid=false) X-Ref |
Returns HTML to display the add page links return: string param: lesson $lesson param: int $prevpageid |
add_first_page_links(lesson $lesson) X-Ref |
Return HTML to display add first page links return: string param: lesson $lesson |
page_action_links(lesson_page $page, $printmove, $printaddpage=false) X-Ref |
Returns HTML to display action links for a page return: string param: lesson_page $page param: bool $printmove param: bool $printaddpage |
ongoing_score(lesson $lesson) X-Ref |
Prints the on going message to the user. With custom grading On, displays points earned out of total points possible thus far. With custom grading Off, displays number of correct answers out of total attempted. return: string param: lesson $lesson |
progress_bar(lesson $lesson, $progress = null) X-Ref |
Returns HTML to display a progress bar of progression through a lesson return: string param: lesson $lesson param: int $progress optional, if empty it will be calculated |
slideshow_start(lesson $lesson) X-Ref |
Returns HTML to show the start of a slideshow param: lesson $lesson |
slideshow_end() X-Ref |
Returns HTML to show the end of a slideshow |
paragraph($contents, $class='') X-Ref |
Returns a P tag containing contents param: string $contents param: string $class |
display_eol_page(lesson $lesson, $data) X-Ref |
Returns the HTML for displaying the end of lesson page. return: string HTML contents param: lesson $lesson lesson instance param: stdclass $data lesson data to be rendered |
render_override_action_menu(\mod_lesson\output\override_action_menu $overrideactionmenu) X-Ref |
Render the override action menu. return: string The rendered override action menu. param: \mod_lesson\output\override_action_menu $overrideactionmenu The overrideactionmenu |
render_edit_action_buttons(\mod_lesson\output\edit_action_buttons $editbuttons) X-Ref |
Render the edit action buttons. return: string The rendered edit action buttons. param: \mod_lesson\output\edit_action_buttons $editbuttons The editbuttons |
render_edit_action_area(\mod_lesson\output\edit_action_area $editarea) X-Ref |
Render the edit action area. return: string The rendered edit action area. param: \mod_lesson\output\edit_action_area $editarea The edit area. |
render_report_action_menu(\mod_lesson\output\report_action_menu $reportmenu) X-Ref |
Render the report action menu return: string The rendered report action menu. param: \mod\lesson\output\report_action_menu $reportmenu The reportmenu. |