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.

(no description)

Copyright: 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 138 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

restore_path_element:: (11 methods):
  __construct()
  validate_name()
  validate_pobject()
  set_processing_object()
  set_data()
  get_name()
  get_path()
  is_grouped()
  get_processing_object()
  get_processing_method()
  get_data()

restore_path_element_exception:: (1 method):
  __construct()


Class: restore_path_element  - X-Ref

Class representing one path to be restored from XML file

__construct($name, $path, $grouped = false)   X-Ref
Constructor - instantiates one restore_path_element, specifying its basic info.

param: string $name name of the thing being restored. This determines the name of the process_... method called.
param: string $path path of the element.
param: bool $grouped to gather information in grouped mode or no.

validate_name($name)   X-Ref
No description

validate_pobject($pobject)   X-Ref
No description

set_processing_object($pobject)   X-Ref
No description

set_data($data)   X-Ref
No description

get_name()   X-Ref
No description

get_path()   X-Ref
No description

is_grouped()   X-Ref
No description

get_processing_object()   X-Ref
No description

get_processing_method()   X-Ref
No description

get_data()   X-Ref
No description

Class: restore_path_element_exception  - X-Ref

restore_path_element exception class

__construct($errorcode, $a = null, $debuginfo = null)   X-Ref
Constructor - instantiates one restore_path_element_exception

param: string $errorcode key for the corresponding error string
param: object $a extra words and phrases that might be required in the error string
param: string $debuginfo optional debugging information