Output the action menu for the book activity.
More...
|
| __construct (int $cmid, array $chapters, stdClass $chapter) |
| Constructor for this class.
|
|
| export_for_template (\renderer_base $output) |
| Exports the navigation buttons around the book.
|
|
|
stdClass | $chapter |
| Current chapter of the book.
|
|
stdClass[] | $chapters |
| Chapters of the book.
|
|
int | $cmid |
| The course module ID.
|
|
Output the action menu for the book activity.
- Copyright
- 2021 Adrian Greeve adria.nosp@m.n@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
mod_book\output\main_action_menu::__construct |
( |
int | $cmid, |
|
|
array | $chapters, |
|
|
stdClass | $chapter ) |
Constructor for this class.
- Parameters
-
int | $cmid | The course module ID. |
array | $chapters | Chapters of this book. |
stdClass | $chapter | The current chapter. |
◆ export_for_template()
mod_book\output\main_action_menu::export_for_template |
( |
\renderer_base | $output | ) |
|
Exports the navigation buttons around the book.
- Parameters
-
renderer_base | $output | renderer base output. |
- Return values
-
◆ get_chapter()
mod_book\output\main_action_menu::get_chapter |
( |
int | $id | ) |
|
|
protected |
Get the specific chapter of the book.
- Parameters
-
int | $id | The chapter id to retrieve. |
- Return values
-
?stdClass | The requested chapter. |
◆ get_next_chapter()
mod_book\output\main_action_menu::get_next_chapter |
( |
| ) |
|
|
protected |
Get the next chapter in the book.
- Return values
-
?stdClass | The next chapter of the book. |
◆ get_previous_chapter()
mod_book\output\main_action_menu::get_previous_chapter |
( |
| ) |
|
|
protected |
Get the previous chapter in the book.
- Return values
-
?stdClass | The previous chapter of the book. |
The documentation for this class was generated from the following file:
- mod/book/classes/output/main_action_menu.php