103 $task =
new $className($gui);
115 return 'il' . $this->moduleName . ucfirst($task) .
'Task';
125 return $this->moduleBasePath .
'/' . $this->relativeClassPath .
'/' .
126 $this->relativeTaskPath .
'/class.' . $this->
getTaskClassName($task) .
'.php';
hasTask($task)
Returns true if file exists.
__construct($moduleName, $moduleBasePath, $relativeClassPath='classes', $relativeTaskPath='tasks')
Sets class parameters using given parameters.
buildTask($task, ilChatroomObjectGUI $gui)
Builds and returns new task using given $task and $gui.
static getDefaultDefinition($moduleName)
Returns an Instance of ilChatroomObjectDefinition, using given $moduleName as parameter.
static getDefaultDefinitionWithCustomTaskPath($moduleName, $relativeTaskFolder)
Returns an Instance of ilChatroomObjectDefinition, using given $moduleName and $relativeTaskFolder as...
getTaskClassName($task)
Builds task classname using given $task and returns it.
getTaskPath($task)
Builds task path using given $task and returns it.
loadTask($task)
Requires file, whereby given $task is used as parameter in getTaskPath method to build the filename o...