ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilSCComponentTaskFactory Class Reference

Factory for component tasks. More...

+ Collaboration diagram for ilSCComponentTaskFactory:

Static Public Member Functions

static getComponentTaskByForGroup ($a_group_id, $a_task_id=null)
 get task gui for group More...
 
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

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

References ilSCTasks\lookupGroupId().

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

51  {
52  include_once './Services/SystemCheck/classes/class.ilSCTasks.php';
53  $group_id = ilSCTasks::lookupGroupId($a_task_id);
54 
55  return self::getComponentTaskByForGroup($group_id, $a_task_id);
56  }
static lookupGroupId($a_task_id)
Lookup group id by task id type $ilDB.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getComponentTaskByForGroup()

static ilSCComponentTaskFactory::getComponentTaskByForGroup (   $a_group_id,
  $a_task_id = null 
)
static

get task gui for group

Parameters
type$a_group_id
Returns

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

References ilSCGroup\lookupComponent().

Referenced by ilSCGroupTableGUI\parse().

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  {
28  $task = new ilSCTask($a_task_id);
29  }
30 
31  // this switch should not be used
32  // find class by naming convention and component service
33  switch($component_id)
34  {
35  case 'tree':
36  include_once './Services/Tree/classes/class.ilSCTreeTasksGUI.php';
37  include_once './Services/SystemCheck/classes/class.ilSCTask.php';
38  return new ilSCTreeTasksGUI($task);
39  }
40  }
Defines a system check task.
static lookupComponent($a_id)
lookup component by id type $ilDB
Handles tree tasks.
+ 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: