Modulo:Mooc/TypeHandler/man
< Modulo:Mooc | TypeHandler
Questa è la pagina di documentazione per Modulo:Mooc/TypeHandler
TypeHandler[modifica]
This module stores information about classes responsible to handle a MOOC item type.
constructor (init)[modifica]
Parameters:
- [
Mooc/Data/Item.Type
] type: MOOC item type this handler is resposible for - [
String
] parserPath: path to the parser class - [
String
] templatePath: path to the template
Note: Paths are threaten like in module loading.
Example:
local lessonHandler = TypeHandler(lesson, "Module:Mooc/Data/Lesson", "Module:Mooc/Template/Lesson")
getParser[modifica]
Returns: parser class that gets loaded if not preloaded in Lua yet
getTemplate[modifica]
Returns: template class that gets loaded if not preloaded in Lua yet