Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 39 and 311]

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.

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

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

param: print_book_chapter_page $page
return: string html for the 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.

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

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

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
return: array The array containing the content of the book chapter and visibility information