Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Classes | Functions | Variables
locallib.php File Reference

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'
 

Detailed Description

Book module local lib functions.

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