5 include_once
'./Services/SystemCheck/classes/class.ilSCTask.php';
28 $this->grp_id = $a_grp_id;
38 if (!array_key_exists($a_group_id, self::$instances)) {
39 return self::$instances[$a_group_id] =
new self($a_group_id);
41 return self::$instances[$a_group_id];
51 foreach ($this->
getTasks() as $task) {
52 if ($task->getIdentifier() == $a_identifier) {
59 $task->setIdentifier($a_identifier);
62 return $task->getId();
77 $query =
'SELECT grp_id FROM sysc_tasks ' .
78 'WHERE id = ' . $ilDB->quote($a_task_id,
'integer');
94 $query =
'SELECT count(id) num FROM sysc_tasks ' .
96 'AND grp_id = ' . $ilDB->quote($a_grp_id,
'integer');
112 $query =
'SELECT count(id) num FROM sysc_tasks ' .
114 'AND grp_id = ' . $ilDB->quote($a_grp_id,
'integer');
132 $query =
'SELECT MAX(last_update) last_update FROM sysc_tasks ' .
134 'AND grp_id = ' . $ilDB->quote($a_grp_id,
'integer');
164 $query =
'SELECT id FROM sysc_tasks ' .
168 $this->tasks =
array();
Defines a system check task.
__construct($a_grp_id)
Singleton constructor.
updateFromComponentDefinition($a_identifier)
Update from module/service reader.
static lookupFailed($a_grp_id)
type $ilDB
static lookupLastUpdate($a_grp_id)
Lookup last update of group tasks type $ilDB.
foreach($_POST as $key=> $value) $res
static getInstanceByGroupId($a_group_id)
Get singleton instance.
Create styles array
The data for the language used.
static lookupGroupId($a_task_id)
Lookup group id by task id type $ilDB.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static lookupCompleted($a_grp_id)
type $ilDB