ILIAS  release_8 Revision v8.24
ilSCComponentTaskFactory Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilSCComponentTaskFactory:

Static Public Member Functions

static getComponentTaskGUIForGroup (int $a_group_id, ?int $a_task_id=null)
 
static getTask (int $a_group_id, int $a_task_id)
 
static getComponentTask (int $a_task_id)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Factory for component tasks

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 24 of file class.ilSCComponentTaskFactory.php.

Member Function Documentation

◆ getComponentTask()

static ilSCComponentTaskFactory::getComponentTask ( int  $a_task_id)
static

Definition at line 57 of file class.ilSCComponentTaskFactory.php.

58 {
59 $group_id = ilSCTasks::lookupGroupId($a_task_id);
60
61 return self::getComponentTaskGUIForGroup($group_id, $a_task_id);
62 }
static getComponentTaskGUIForGroup(int $a_group_id, ?int $a_task_id=null)
static lookupGroupId(int $a_task_id)
Handles tree tasks.

References getComponentTaskGUIForGroup(), and ilSCTasks\lookupGroupId().

Referenced by ilObjSystemCheckGUI\executeCommand(), ilSCTaskTableGUI\fillRow(), and ilSCTaskTableGUI\parse().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getComponentTaskGUIForGroup()

static ilSCComponentTaskFactory::getComponentTaskGUIForGroup ( int  $a_group_id,
?int  $a_task_id = null 
)
static

Definition at line 26 of file class.ilSCComponentTaskFactory.php.

27 {
28 $component_id = ilSCGroup::lookupComponent($a_group_id);
29
30 $task = null;
31 if ($a_task_id) {
32 $task = self::getTask($a_group_id, $a_task_id);
33 }
34
35 // this switch should not be used
36 // find class by naming convention and component service
37 switch ($component_id) {
38 case 'tree':
39
40 return new ilSCTreeTasksGUI($task);
41 }
42 return null;
43 }
static getTask(int $a_group_id, int $a_task_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static lookupComponent(int $a_id)

References getTask(), and ilSCGroup\lookupComponent().

Referenced by getComponentTask(), and ilSCGroupTableGUI\parse().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTask()

static ilSCComponentTaskFactory::getTask ( int  $a_group_id,
int  $a_task_id 
)
static

Definition at line 45 of file class.ilSCComponentTaskFactory.php.

45 : ilSCTask
46 {
47 $component_id = ilSCGroup::lookupComponent($a_group_id);
48 switch ($component_id) {
49 case 'tree':
51 return new ilSCTreeDumpTask($a_task_id);
52 }
53 }
54 return new ilSCTask($a_task_id);
55 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static lookupIdentifierForTask(int $a_task_id)

References ilSCGroup\lookupComponent(), ilSCTasks\lookupIdentifierForTask(), and ilSCTreeTasksGUI\TYPE_DUMP.

Referenced by getComponentTaskGUIForGroup(), and ilSCTasks\read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: