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

Public Member Functions

 get_paths ()
 process_choice ($data)
 on_choice_options_start ()
 process_choice_option ($data)
 on_choice_options_end ()
 on_choice_end ()

Protected Attributes

 $fileman = null
 $moduleid = null

Detailed Description

Choice conversion handler

Definition at line 32 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/CHOICE 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 53 of file lib.php.

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

Definition at line 135 of file lib.php.

Here is the call graph for this function:

This is executed when the parser reaches the closing </OPTIONS> element

Definition at line 128 of file lib.php.

This is executed when the parser reaches the <OPTIONS> opening element

Definition at line 113 of file lib.php.

process_choice ( data)

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

Definition at line 79 of file lib.php.

Here is the call graph for this function:

process_choice_option ( data)

This is executed every time we have one /MOODLE_BACKUP/COURSE/MODULES/MOD/CHOICE/OPTIONS/OPTION data available

Definition at line 121 of file lib.php.

Here is the call graph for this function:


Field Documentation

$fileman = null [protected]

Definition at line 35 of file lib.php.

$moduleid = null [protected]

Definition at line 38 of file lib.php.


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