Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
restore_log_rule Class Reference

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

Inheritance diagram for restore_log_rule:
processable

Public Member Functions

 __construct ($module, $action, $urlread, $inforead, $modulewrite=null, $actionwrite=null, $urlwrite=null, $infowrite=null)
 
 get_key_name ()
 
 process ($inputlog)
 This function will call to the corresponding processor method in other to make them perform the desired tasks.
 
 set_fixed_values ($values)
 
 set_restoreid ($restoreid)
 

Protected Member Functions

 build_regexp ($expression, $tokens)
 
 calculate_info_regexp ($infoexpression)
 
 calculate_url_regexp ($urlexpression)
 
 extract_tokens ($expression)
 
 parse_tokens_and_matches ($tokens, $values, $content)
 

Protected Attributes

 $action
 
 $actionwrite
 
 $allpairs
 
 $fixedvalues
 
 $inforead
 
 $inforeadregexp
 
 $infotokens
 
 $infowrite
 
 $module
 
 $modulewrite
 
 $restoreid
 
 $urlread
 
 $urlreadregexp
 
 $urltokens
 
 $urlwrite
 

Detailed Description

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

Member Function Documentation

◆ process()

restore_log_rule::process ( $processor)

This function will call to the corresponding processor method in other to make them perform the desired tasks.

Implements processable.


The documentation for this class was generated from the following file: