ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

References ilSCTasks\lookupGroupId().

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

58  {
59  $group_id = ilSCTasks::lookupGroupId($a_task_id);
60 
61  return self::getComponentTaskGUIForGroup($group_id, $a_task_id);
62  }
static lookupGroupId(int $a_task_id)
Handles tree tasks.
+ 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.

References ilSCGroup\lookupComponent(), and null.

Referenced by ilSCGroupTableGUI\parse().

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  }
Abstract class for component tasks.
static lookupComponent(int $a_id)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Handles tree tasks.
+ 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.

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

Referenced by ilSCTasks\read().

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 lookupComponent(int $a_id)
static lookupIdentifierForTask(int $a_task_id)
+ 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: