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

Public Member Functions

 get_paths ()
 process_data ($data)
 process_data_field ($data)
 process_data_record ($data)
 on_data_end ()

Protected Attributes

 $fileman = null
 $moduleid = null

Detailed Description

Database conversion handler

Definition at line 33 of file lib.php.


Member Function Documentation

get_paths ( )

Declare the paths in moodle.xml we are able to convert

The method returns list of convert_path instances. For each path returned, the corresponding conversion method must be defined.

Note that the path /MOODLE_BACKUP/COURSE/MODULES/MOD/DATA does not actually exist in the file. The last element with the module name was appended by the moodle1_converter class.

Returns:
array of convert_path instances

Definition at line 54 of file lib.php.

This is executed when we reach the closing </MOD> tag of our 'data' path

Definition at line 155 of file lib.php.

Here is the call graph for this function:

process_data ( data)

This is executed every time we have one /MOODLE_BACKUP/COURSE/MODULES/MOD/DATA data available

Definition at line 73 of file lib.php.

Here is the call graph for this function:

process_data_field ( data)

This is executed every time we have one /MOODLE_BACKUP/COURSE/MODULES/MOD/DATA/FIELDS/FIELD data available

Definition at line 138 of file lib.php.

Here is the call graph for this function:

process_data_record ( data)

This is executed every time we have one /MOODLE_BACKUP/COURSE/MODULES/MOD/DATA/RECORDS/RECORD data available

Definition at line 147 of file lib.php.


Field Documentation

$fileman = null [protected]

Definition at line 36 of file lib.php.

$moduleid = null [protected]

Definition at line 39 of file lib.php.


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