Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions | Variables
booktool_exportimscp

Files

file  access.php
 Book module capability definition.
 
file  book_exported.php
 booktool_exportimscp book exported event.
 
file  lib.php
 IMSCP export lib.
 
file  locallib.php
 Book imscp export lib.
 
file  log.php
 Export to IMSCP booktool log events definition.
 
file  provider.php
 Privacy provider implementation for booktool_exportimscp.
 
file  version.php
 Book IMSCP export plugin version info.
 

Namespaces

namespace  booktool_exportimscp\event
  
 
namespace  booktool_exportimscp\privacy
  
 

Classes

class  booktool_exportimscp\event\book_exported
 booktool_exportimscp book exported event class. More...
 
class  booktool_exportimscp\privacy\provider
 Privacy provider implementation for booktool_exportimscp. More...
 

Functions

 booktool_exportimscp_build_package ($book, $context)
 Export one book as IMSCP package. More...
 
 booktool_exportimscp_chapter_content ($chapter, $context)
 Returns the html contents of one book's chapter to be exported as IMSCP. More...
 
 booktool_exportimscp_extend_settings_navigation (settings_navigation $settings, navigation_node $node)
 Adds module specific settings to the settings block. More...
 
 booktool_exportimscp_prepare_files ($book, $context)
 Prepare temp area with the files used by book html contents. More...
 

Variables

 $capabilities
 
 $logs
 
 $plugin = 2020060900
 
$plugin component = 'booktool_exportimscp'
 
$plugin version = 2020061500
 

Detailed Description

Function Documentation

◆ booktool_exportimscp_build_package()

booktool_exportimscp_build_package (   $book,
  $context 
)

Export one book as IMSCP package.

Parameters
stdClass$bookbook instance
context_module$context
Return values
bool|stored_file

◆ booktool_exportimscp_chapter_content()

booktool_exportimscp_chapter_content (   $chapter,
  $context 
)

Returns the html contents of one book's chapter to be exported as IMSCP.

Parameters
stdClass$chapterthe chapter to be exported
context_module$contextcontext the chapter belongs to
Return values
stringthe contents of the chapter

◆ booktool_exportimscp_extend_settings_navigation()

booktool_exportimscp_extend_settings_navigation ( settings_navigation  $settings,
navigation_node  $node 
)

Adds module specific settings to the settings block.

Parameters
settings_navigation$settingsThe settings navigation object
navigation_node$nodeThe node to add module settings to

◆ booktool_exportimscp_prepare_files()

booktool_exportimscp_prepare_files (   $book,
  $context 
)

Prepare temp area with the files used by book html contents.

Parameters
stdClass$bookbook instance
context_module$context

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'booktool/exportimscp:export' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE
),
)
const CONTEXT_MODULE
Course module context level - one instance for each course module.
Definition: accesslib.php:130

◆ $logs

$logs
Initial value:
= array(
array('module'=>'book', 'action'=>'exportimscp', 'mtable'=>'book', 'field'=>'name')
)