Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Book module local lib functions. More...
Classes | |
class | book_file_info |
File browsing support class. More... | |
Functions | |
book_add_fake_block ($chapters, $chapter, $book, $cm, $edit=null) | |
Add the book TOC sticky block to the default region. More... | |
book_get_chapter_title ($chid, $chapters, $book, $context) | |
Returns the title for a given chapter. More... | |
book_get_toc ($chapters, $chapter, $book, $cm, $edit) | |
Generate toc structure. More... | |
book_preload_chapters ($book) | |
Preload book chapters and fix toc structure if necessary. More... | |
mod_book_get_tagged_chapters ($tag, $exclusivemode=false, $fromctx=0, $ctx=0, $rec=true, $page=0) | |
Returns book chapters tagged with a specified tag. More... | |
Variables | |
const | BOOK_LINK_IMAGE '1' |
const | BOOK_LINK_TEXT '2' |
const | BOOK_LINK_TOCONLY '0' |
The following defines are used to define the navigation style used within a book. More... | |
const | BOOK_NUM_BULLETS '2' |
const | BOOK_NUM_INDENTED '3' |
const | BOOK_NUM_NONE '0' |
The following defines are used to define how the chapters and subchapters of a book should be displayed in that table of contents. More... | |
const | BOOK_NUM_NUMBERS '1' |
Book module local lib functions.