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

Public Member Functions

 get_paths ()
 process_chat ($data)
 process_chat_message ($data)
 on_chat_end ()

Protected Attributes

 $fileman = null
 $moduleid = null

Detailed Description

Chat 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/CHAT 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 'chat' path

Definition at line 123 of file lib.php.

Here is the call graph for this function:

process_chat ( data)

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

Definition at line 71 of file lib.php.

Here is the call graph for this function:

process_chat_message ( data)

This is executed every time we have one /MOODLE_BACKUP/COURSE/MODULES/MOD/CHAT/MESSAGES/MESSAGE data available

Definition at line 115 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