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

Public Member Functions

 get_paths ()
 process_workshop ($data, $raw)
 on_workshop_elements_start ()
 process_workshop_element ($data, $raw)
 process_workshop_element_rubric ($data, $raw)
 on_workshop_element_end ()
 on_workshop_elements_end ()
 on_workshop_end ()
 get_current_workshop ()
 get_inforef_manager ()

Protected Member Functions

 get_strategy_handler ($strategy)
 internal implementation details follow /////////////////////////////////

Protected Attributes

 $currentworkshop = null
 $currentcminfo = null
 $newelementids = array()
 $fileman = null
 $inforefman = null

Detailed Description

Workshop conversion handler

Definition at line 34 of file lib.php.


Member Function Documentation

Provides access to the current <workshop> data

Returns:
array|null

Definition at line 244 of file lib.php.

Provides access to the instance's inforef manager

Returns:
moodle1_inforef_manager

Definition at line 253 of file lib.php.

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, at least one of on_xxx_start(), process_xxx() and on_xxx_end() methods must be defined. The method process_xxx() is not executed if the associated path element is empty (i.e. it contains none elements or sub-paths only).

Note that the path /MOODLE_BACKUP/COURSE/MODULES/MOD/WORKSHOP 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 71 of file lib.php.

get_strategy_handler ( strategy) [protected]

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

Factory method returning the handler of the given grading strategy subplugin

Parameters:
string$strategythe name of the grading strategy
Exceptions:
moodle1_convert_exception
Returns:
moodle1_workshopform_handler the instance of the handler

Definition at line 266 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

This is executed when the parser reaches </ELEMENT>

Definition at line 194 of file lib.php.

Here is the call graph for this function:

This is executed when the parser reaches </ELEMENTS>

Definition at line 203 of file lib.php.

Here is the call graph for this function:

This is executed when the parser reaches <ELEMENTS>

The dimensions definition follows. One of the grading strategy subplugins will append dimensions data in self::process_workshop_element()

Definition at line 155 of file lib.php.

Here is the call graph for this function:

This is executed when the parser reaches </MOD>

Definition at line 220 of file lib.php.

Here is the call graph for this function:

process_workshop ( data,
raw 
)

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

Definition at line 92 of file lib.php.

Here is the call graph for this function:

process_workshop_element ( data,
raw 
)

Processes one <ELEMENT> tag from moodle.xml

Definition at line 168 of file lib.php.

Here is the call graph for this function:

process_workshop_element_rubric ( data,
raw 
)

Processes one <RUBRIC> tag from moodle.xml

Definition at line 183 of file lib.php.

Here is the call graph for this function:


Field Documentation

$currentcminfo = null [protected]

Definition at line 40 of file lib.php.

$currentworkshop = null [protected]

Definition at line 37 of file lib.php.

$fileman = null [protected]

Definition at line 46 of file lib.php.

$inforefman = null [protected]

Definition at line 49 of file lib.php.

$newelementids = array() [protected]

Definition at line 43 of file lib.php.


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