Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 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 = array()   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