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

Public Member Functions

 get_paths ()
 process_assignment ($data)
 process_assignment_submission ($data)
 handle_assignment_subplugin ($data)
 on_assignment_end ()

Protected Member Functions

 get_subplugin_handler ($subplugin)
 internal implementation details follow /////////////////////////////////

Protected Attributes

 $fileman = null
 $moduleid = null

Detailed Description

Assignment 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/ASSIGNMENT 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 60 of file lib.php.

get_subplugin_handler ( subplugin) [protected]

internal implementation details follow /////////////////////////////////

Factory method returning the handler of the given assignment subplugin

Parameters:
string$subpluginthe name of the subplugin
Exceptions:
moodle1_convert_exception
Returns:
moodle1_assignment_subplugin_handler the instance of the handler

Definition at line 171 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

This handles calls to subplugin conversion classes. called from <ASSIGNMENTTYPE> within process_assignment()

Definition at line 131 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 143 of file lib.php.

Here is the call graph for this function:

process_assignment ( data)

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

Definition at line 80 of file lib.php.

Here is the call graph for this function:

This is executed every time we have one /MOODLE_BACKUP/COURSE/MODULES/MOD/ASSIGNMENT/SUBMISSIONS/SUBMISSION data available

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