Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Namespaces | |
namespace | booktool_importhtml\privacy |
| |
Classes | |
class | booktool_importhtml\privacy\provider |
Privacy provider implementation for booktool_importhtml. More... | |
class | booktool_importhtml_form |
Functions | |
booktool_importhtml_extend_settings_navigation (settings_navigation $settings, navigation_node $node) | |
Adds module specific settings to the settings block. | |
toolbook_importhtml_fix_encoding ($html) | |
Convert some html content to utf8, getting original encoding from html headers. | |
toolbook_importhtml_fix_path ($path) | |
Normalize paths to be absolute. | |
toolbook_importhtml_get_chapter_files ($package, $type) | |
Returns all the html files (chapters) from a file package. | |
toolbook_importhtml_import_chapters ($package, $type, $book, $context, $verbose=true) | |
Import HTML pages packaged into one zip archive. | |
toolbook_importhtml_parse_body ($html) | |
Extract the body from any html contents. | |
toolbook_importhtml_parse_headings ($html) | |
Parse the headings of the imported package of type 'typeonefile' (currently unsupported) | |
toolbook_importhtml_parse_styles ($html) | |
Parse the links to external css sheets of the imported html content. | |
toolbook_importhtml_parse_title ($html, $default) | |
Extract the title of any html content, getting it from the title tag. | |
Variables | |
$capabilities | |
$plugin = 2024041600 | |
$plugin | component = 'booktool_importhtml' |
$plugin | version = 2024042200 |
booktool_importhtml_extend_settings_navigation | ( | settings_navigation | $settings, |
navigation_node | $node ) |
Adds module specific settings to the settings block.
settings_navigation | $settings | The settings navigation object |
navigation_node | $node | The node to add module settings to |
toolbook_importhtml_fix_encoding | ( | $html | ) |
Convert some html content to utf8, getting original encoding from html headers.
string | $html | html content to convert |
string | html content converted to utf8 |
toolbook_importhtml_fix_path | ( | $path | ) |
Normalize paths to be absolute.
string | $path | original path with MS/relative separators |
string | the normalized and cleaned absolute path |
toolbook_importhtml_get_chapter_files | ( | $package, | |
$type ) |
Returns all the html files (chapters) from a file package.
stored_file | $package | file to be processed |
string | $type | type of the package ('typezipdirs' or 'typezipfiles') |
array | the html files found in the package |
toolbook_importhtml_import_chapters | ( | $package, | |
$type, | |||
$book, | |||
$context, | |||
$verbose = true ) |
Import HTML pages packaged into one zip archive.
stored_file | $package | |
string | $type | type of the package ('typezipdirs' or 'typezipfiles') |
stdClass | $book | |
context_module | $context | |
bool | $verbose |
toolbook_importhtml_parse_body | ( | $html | ) |
Extract the body from any html contents.
string | $html | the html to parse |
string | the contents of the body |
toolbook_importhtml_parse_headings | ( | $html | ) |
Parse the headings of the imported package of type 'typeonefile' (currently unsupported)
string | $html | html content to parse |
toolbook_importhtml_parse_styles | ( | $html | ) |
Parse the links to external css sheets of the imported html content.
string | $html | html content to parse |
string | all the links to external css sheets |
toolbook_importhtml_parse_title | ( | $html, | |
$default ) |
Extract the title of any html content, getting it from the title tag.
string | $html | the html to parse |
string | $default | default title to apply if no title is found |
string | the resulting title |
$capabilities |