Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 310]

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