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

Public Member Functions

 get_paths ()
 process_lesson ($data)
 on_lesson_pages_start ()
 process_lesson_page ($data)
 process_lesson_answer ($data)
 on_lesson_page_end ()
 on_lesson_pages_end ()
 on_lesson_end ()

Protected Member Functions

 write_single_page_xml ($page, $prevpageid=0, $nextpageid=0)

Protected Attributes

 $answers
 $page
 $pages
 $prevpageid = 0
 $fileman = null
 $moduleid = null

Detailed Description

Lesson 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/LESSON 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 62 of file lib.php.

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

Definition at line 236 of file lib.php.

Here is the call graph for this function:

Definition at line 188 of file lib.php.

Here is the call graph for this function:

Definition at line 216 of file lib.php.

Here is the call graph for this function:

Definition at line 142 of file lib.php.

process_lesson ( data)

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

Definition at line 104 of file lib.php.

Here is the call graph for this function:

process_lesson_answer ( data)

This is executed every time we have one /MOODLE_BACKUP/COURSE/MODULES/MOD/LESSON/PAGES/PAGE/ANSWERS/ANSWER data available

Definition at line 170 of file lib.php.

Here is the call graph for this function:

process_lesson_page ( data)

This is executed every time we have one /MOODLE_BACKUP/COURSE/MODULES/MOD/LESSON/PAGES/PAGE data available

Definition at line 150 of file lib.php.

Here is the call graph for this function:

write_single_page_xml ( page,
prevpageid = 0,
nextpageid = 0 
) [protected]

writes out the given page into the open xml handle

Parameters:
type$page
type$prevpageid
type$nextpageid

Definition at line 260 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$answers [protected]

Definition at line 34 of file lib.php.

$fileman = null [protected]

Definition at line 44 of file lib.php.

$moduleid = null [protected]

Definition at line 47 of file lib.php.

$page [protected]

Definition at line 37 of file lib.php.

$pages [protected]

Definition at line 39 of file lib.php.

$prevpageid = 0 [protected]

Definition at line 41 of file lib.php.


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