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

Public Member Functions

 get_calculated_regexp ()

Protected Member Functions

 get_mapping ($itemname, $itemid)
 apply_modifications ($toreplace, $mappingsok)

Detailed Description

Mockup restore_decode_rule for testing purposes

Definition at line 175 of file testdecode.php.


Member Function Documentation

apply_modifications ( toreplace,
mappingsok 
) [protected]

Simply prefix with '0' non-mapped results and with '1' mapped ones

Reimplemented from restore_decode_rule.

Definition at line 194 of file testdecode.php.

Originally protected, make it public

Reimplemented from restore_decode_rule.

Definition at line 180 of file testdecode.php.

get_mapping ( itemname,
itemid 
) [protected]

Simply map each itemid by its double

Reimplemented from restore_decode_rule.

Definition at line 187 of file testdecode.php.


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