Moodle  2.2.1
http://www.collinsharper.com
restore_log_rule Class Reference
Inheritance diagram for restore_log_rule:
Collaboration diagram for restore_log_rule:

Public Member Functions

 __construct ($module, $action, $urlread, $inforead, $modulewrite=null, $actionwrite=null, $urlwrite=null, $infowrite=null)
 set_restoreid ($restoreid)
 set_fixed_values ($values)
 get_key_name ()
 process ($log)

Protected Member Functions

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

Protected Attributes

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

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

Definition at line 36 of file restore_log_rule.class.php.


Constructor & Destructor Documentation

__construct ( module,
action,
urlread,
inforead,
modulewrite = null,
actionwrite = null,
urlwrite = null,
infowrite = null 
)

Definition at line 62 of file restore_log_rule.class.php.

Here is the call graph for this function:


Member Function Documentation

build_regexp ( expression,
tokens 
) [protected]

Definition at line 235 of file restore_log_rule.class.php.

Here is the caller graph for this function:

calculate_info_regexp ( infoexpression) [protected]

Definition at line 220 of file restore_log_rule.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

calculate_url_regexp ( urlexpression) [protected]

Definition at line 211 of file restore_log_rule.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

extract_tokens ( expression) [protected]

Definition at line 229 of file restore_log_rule.class.php.

Here is the caller graph for this function:

Definition at line 96 of file restore_log_rule.class.php.

parse_tokens_and_matches ( tokens,
values,
content 
) [protected]

Definition at line 164 of file restore_log_rule.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

process ( processor)

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

Implements processable.

Definition at line 100 of file restore_log_rule.class.php.

Here is the call graph for this function:

set_fixed_values ( values)

Definition at line 91 of file restore_log_rule.class.php.

set_restoreid ( restoreid)

Definition at line 87 of file restore_log_rule.class.php.


Field Documentation

$action [protected]

Definition at line 39 of file restore_log_rule.class.php.

$actionwrite [protected]

Definition at line 45 of file restore_log_rule.class.php.

$allpairs [protected]

Definition at line 53 of file restore_log_rule.class.php.

$fixedvalues [protected]

Definition at line 58 of file restore_log_rule.class.php.

$inforead [protected]

Definition at line 42 of file restore_log_rule.class.php.

$inforeadregexp [protected]

Definition at line 51 of file restore_log_rule.class.php.

$infotokens [protected]

Definition at line 56 of file restore_log_rule.class.php.

$infowrite [protected]

Definition at line 48 of file restore_log_rule.class.php.

$module [protected]

Definition at line 38 of file restore_log_rule.class.php.

$modulewrite [protected]

Definition at line 44 of file restore_log_rule.class.php.

$restoreid [protected]

Definition at line 60 of file restore_log_rule.class.php.

$urlread [protected]

Definition at line 41 of file restore_log_rule.class.php.

$urlreadregexp [protected]

Definition at line 50 of file restore_log_rule.class.php.

$urltokens [protected]

Definition at line 55 of file restore_log_rule.class.php.

$urlwrite [protected]

Definition at line 47 of file restore_log_rule.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations