ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSCComponentTaskFactory Class Reference

Factory for component tasks. More...

+ Collaboration diagram for ilSCComponentTaskFactory:

Static Public Member Functions

static getComponentTaskGUIForGroup ($a_group_id, $a_task_id=null)
 get task gui for group More...
 
static getTask ($a_group_id, $a_task_id)
 
static getComponentTask ($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 12 of file class.ilSCComponentTaskFactory.php.

Member Function Documentation

◆ getComponentTask()

static ilSCComponentTaskFactory::getComponentTask (   $a_task_id)
static
Parameters
type$a_task_id
Returns
\ilSCTreeTasksGUI

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

65 {
66 include_once './Services/SystemCheck/classes/class.ilSCTasks.php';
67 $group_id = ilSCTasks::lookupGroupId($a_task_id);
68
69 return self::getComponentTaskGUIForGroup($group_id, $a_task_id);
70 }
static getComponentTaskGUIForGroup($a_group_id, $a_task_id=null)
get task gui for group
static lookupGroupId($a_task_id)
Lookup group id by task id @global type $ilDB.

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 (   $a_group_id,
  $a_task_id = null 
)
static

get task gui for group

Parameters
type$a_group_id
Returns
\ilSCTreeTasksGUI

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

21 {
22 include_once './Services/SystemCheck/classes/class.ilSCGroup.php';
23 $component_id = ilSCGroup::lookupComponent($a_group_id);
24
25 $task = null;
26 if ($a_task_id) {
27 $task = self::getTask($a_group_id, $a_task_id);
28 }
29
30 // this switch should not be used
31 // find class by naming convention and component service
32 switch ($component_id) {
33 case 'tree':
34 include_once './Services/Tree/classes/class.ilSCTreeTasksGUI.php';
35 include_once './Services/SystemCheck/classes/class.ilSCTask.php';
36 return new ilSCTreeTasksGUI($task);
37 }
38 }
static getTask($a_group_id, $a_task_id)
static lookupComponent($a_id)
lookup component by id @global type $ilDB
Handles tree tasks.

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 (   $a_group_id,
  $a_task_id 
)
static
Parameters
int$a_group_id
string$a_task_id

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

45 {
46 $component_id = ilSCGroup::lookupComponent($a_group_id);
47 switch ($component_id) {
48 case 'tree':
50 return new \ilSCTreeDumpTask($a_task_id);
51 }
52 }
53 return new \ilSCTask($a_task_id);
54 }
static lookupIdentifierForTask($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: