5include_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];
 
   53        $db = 
$DIC->database();
 
   54        $query = 
'select identifier from sysc_tasks ' .
 
   55            'where id = ' . $db->quote($a_task_id, 
'integer');
 
   58            return $row->identifier;
 
   71        foreach ($this->
getTasks() as $task) {
 
   72            if ($task->getIdentifier() == $a_identifier) {
 
   79        $task->setIdentifier($a_identifier);
 
   82        return $task->getId();
 
   99        $query = 
'SELECT grp_id FROM sysc_tasks ' .
 
  100                'WHERE id = ' . 
$ilDB->quote($a_task_id, 
'integer');
 
  115        foreach (
$tasks->getTasks() as $task) {
 
  116            if (!$task->isActive()) {
 
  123        return $num_completed;
 
  133        foreach (
$tasks->getTasks() as $task) {
 
  134            if (!$task->isActive()) {
 
  157        $query = 
'SELECT MAX(last_update) last_update FROM sysc_tasks ' .
 
  159                'AND grp_id = ' . 
$ilDB->quote($a_grp_id, 
'integer');
 
  191        $query = 
'SELECT id, grp_id FROM sysc_tasks ' .
 
  195        $this->tasks = array();
 
An exception for terminatinating execution or to throw for unit testing.
@classDescription Date and time handling
static getTask($a_group_id, $a_task_id)
Defines a system check task.
static getInstanceByGroupId($a_group_id)
Get singleton instance.
static lookupFailed($a_grp_id)
static lookupCompleted($a_grp_id)
static lookupGroupId($a_task_id)
Lookup group id by task id @global type $ilDB.
static lookupLastUpdate($a_grp_id)
Lookup last update of group tasks @global type $ilDB.
static lookupIdentifierForTask($a_task_id)
__construct($a_grp_id)
Singleton constructor.
updateFromComponentDefinition($a_identifier)
Update from module/service reader.
foreach($_POST as $key=> $value) $res