Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 39 and 400]

Defines the renderer for the book print tool.

Copyright: 2019 Mihail Geshoski
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 208 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: renderer  - X-Ref

The renderer for the book print tool.

render_print_book_page(print_book_page $page)   X-Ref
Render the print book page.

return: string html for the page
param: print_book_page $page

render_print_book_chapter_page(print_book_chapter_page $page)   X-Ref
Render the print book chapter page.

return: string html for the page
param: print_book_chapter_page $page

render_print_book_chapter_dialog_link()   X-Ref
Render the print book chapter link.

return: string html for the link

render_print_book_dialog_link()   X-Ref
Render the print book link.

return: string html for the link

render_print_book_toc($chapters, $book, $cm)   X-Ref
Render the print book table of contents.

return: string html for the TOC
param: array $chapters Array of book chapters
param: object $book The book object
param: object $cm The curse module object

render_print_book_chapter($chapter, $chapters, $book, $cm)   X-Ref
Render the print book chapter.

return: array The array containing the content of the book chapter and visibility information
param: object $chapter The book chapter object
param: array $chapters The array of book chapters
param: object $book The book object
param: object $cm The course module object