Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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


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