Method |
Description |
|
__construct ( ) |
|
|
consolidatePost ( integer $pid, WP_Post $post ) : boolean |
Ensures this chapter/part/front matter has a "menu_order" when it is saved |
|
deleteBookObjectCache ( ) |
Delete the Book Object cache(s) |
|
deletePost ( integer $pid ) : boolean |
Put a Part/Chapter/Front Matter/Back Matter in the trash |
|
get ( string $what = 'next' ) : string |
Fetch next, previous or first post |
|
getBookContents ( ) : array |
Returns an array representing the entire structure of a book, in correct order,
with a maximum amount of fields. Data is raw and must be post-processed. |
|
getBookInformation ( $id = '' ) : array |
Returns book information in a useful, string only, format. Data is converted to HTML. |
|
getBookStructure ( string $id = '' ) : array |
Returns an array representing the entire structure of a book, in correct order,
with a minimum amount of fields. Data is raw and must be post-processed. |
|
getFirst ( ) : string |
Select the very first post in a book. May be a chapter or a front matter post |
|
getSubsections ( $id ) : array | false |
Returns an array of subsections in front matter, back matter, or chapters. |
|
isBook ( ) : boolean |
Check if the current blog_id is considered a "book" |
|
tagSubsections ( string $content, $id ) : string |
Returns chapter, front or back matter content with section ID and classes added. |
|
updateBackMatter ( ) |
WP_Ajax hook. Updates the menu_order field associated with a back matter post after reordering it |
|
updateChapter ( ) |
WP_Ajax hook. Updates the menu_order field associated with a chapter post after reordering it
and update its associated part, if necessary |
|
updateExportOptions ( ) |
WP_Ajax hook. Updates a post's "export" setting (export post into book or not) |
|
updateFrontMatter ( ) |
WP_Ajax hook. Updates the menu_order field associated with a front matter post after reordering it |
|
updateGlobalPrivacyOptions ( ) |
WP_Ajax hook. Updates a post's privacy setting (whether the post is published or privately published) |
|
updatePrivacyOptions ( ) |
WP_Ajax hook. Updates a post's privacy setting (whether the post is published or privately published) |
|
updateShowTitleOptions ( ) |
WP_Ajax hook. Updates a post's "show title" setting (show title in exports or not) |
|