ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSCComponentTaskFactory Class Reference

Factory for component tasks. 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

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)
Abstract class for component tasks.
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 }
Defines a system check task.
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: