Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
booktool_print\output\print_book_chapter_page Class Reference

Class containing data for the print book page. More...

Inheritance diagram for booktool_print\output\print_book_chapter_page:
renderable templatable

Public Member Functions

 __construct ($book, $cm, $chapter)
 Construct this renderable. More...
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template. More...
 

Protected Attributes

object $book
 $book The book object.
 
object $chapter
 $chapter The book chapter object.
 
object $cm
 $cm The course module object.
 

Detailed Description

Class containing data for the print book page.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

booktool_print\output\print_book_chapter_page::__construct (   $book,
  $cm,
  $chapter 
)

Construct this renderable.

Parameters
object$bookThe book
object$cmThe course module
object$chapterThe book chapter

Member Function Documentation

◆ export_for_template()

booktool_print\output\print_book_chapter_page::export_for_template ( renderer_base  $output)

Export this data so it can be used as the context for a mustache template.

Parameters
renderer_base$output
Return values
stdClass

Implements templatable.


The documentation for this class was generated from the following file: