Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 39 and 403]

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