Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 401 and 403]

(no description)

File Size: 956 lines (54 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

xml2Array:: (5 methods):
  utf8_to_entities()
  parse()
  tagopen()
  tagdata()
  tagclosed()

Defines 5 functions


Class: xml2Array  - X-Ref

utf8_to_entities($str)   X-Ref
Convert a utf-8 string to html entities

param: string $str The UTF-8 string
return: string

parse($strinputxml)   X-Ref
Parse an XML text string and create an array tree that rapresent the XML structure

param: string $strinputxml The XML string
return: array

tagopen($parser, $name, $attrs)   X-Ref
No description

tagdata($parser, $tagdata)   X-Ref
No description

tagclosed($parser, $name)   X-Ref
No description

Functions that are not part of a class:

scorm_get_resources($blocks)   X-Ref
functions used by SCORM 1.2/2004 packages.


scorm_get_manifest($blocks, $scoes)   X-Ref
No description

scorm_parse_scorm(&$scorm, $manifest)   X-Ref
Sets up SCORM 1.2/2004 packages using the manifest file.
Called whenever SCORM changes

param: object $scorm instance - fields are updated and changes saved into database
param: stored_file|string $manifest - path to manifest file or stored_file.
return: bool

scorm_optionals_data($item, $standarddata)   X-Ref
No description

scorm_is_leaf($sco)   X-Ref
No description

scorm_get_parent($sco)   X-Ref
No description

scorm_get_children($sco)   X-Ref
No description

scorm_get_available_children($sco)   X-Ref
No description

scorm_get_available_descendent($descend, $sco)   X-Ref
No description

scorm_get_siblings($sco)   X-Ref
No description

scorm_get_ancestors($sco)   X-Ref
No description

scorm_get_preorder(&$preorder = array()   X-Ref
No description

scorm_find_common_ancestor($ancestors, $sco)   X-Ref
No description