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: 249 lines (10 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

restore_log_rule:: (10 methods):
  __construct()
  set_restoreid()
  set_fixed_values()
  get_key_name()
  process()
  parse_tokens_and_matches()
  calculate_url_regexp()
  calculate_info_regexp()
  extract_tokens()
  build_regexp()


Class: restore_log_rule  - X-Ref

Helper class used to restore logs, converting all the information as needed

This class allows each restore task to specify which logs (by action) will
be handled on restore and which transformations will be performed in order
to accomodate them into their new destination

TODO: Complete phpdocs
__construct($module, $action, $urlread, $inforead,$modulewrite = null, $actionwrite = null, $urlwrite = null, $infowrite = null)   X-Ref
No description

set_restoreid($restoreid)   X-Ref
No description

set_fixed_values($values)   X-Ref
No description

get_key_name()   X-Ref
No description

process($inputlog)   X-Ref
No description

parse_tokens_and_matches($tokens, $values, $content)   X-Ref
No description

calculate_url_regexp($urlexpression)   X-Ref
No description

calculate_info_regexp($infoexpression)   X-Ref
No description

extract_tokens($expression)   X-Ref
No description

build_regexp($expression, $tokens)   X-Ref
No description