5 include_once
'./Services/Calendar/classes/class.ilDateTime.php';
45 $this->grp_id = $a_id;
55 $this->identifier = $a_ide;
66 $this->last_update = $a_update;
75 if(!$this->last_update)
84 $this->status = $a_status;
108 $query =
'SELECT * FROM sysc_tasks '.
109 'WHERE id = '.$ilDB->quote($this->
getId(),
'integer');
128 $this->
id = $ilDB->nextId(
'sysc_tasks');
130 $query =
'INSERT INTO sysc_tasks (id,grp_id,status,identifier) '.
132 $ilDB->quote($this->
getId(),
'integer').
', '.
133 $ilDB->quote($this->
getGroupId(),
'integer').
', '.
134 $ilDB->quote($this->
getStatus(),
'integer').
', '.
137 $ilDB->manipulate(
$query);
138 return $this->
getId();
148 $query =
'UPDATE sysc_tasks SET '.
150 'status = '.$ilDB->quote($this->
getStatus(),
'integer').
', '.
151 'identifier = '.$ilDB->quote($this->
getIdentifier(),
'text').
' '.
152 'WHERE id = '.$ilDB->quote($this->
getId(),
'integer');
153 $ilDB->manipulate(
$query);
Defines a system check task.
__construct($a_id=0)
Constructor.
create()
Create new group.
getLastUpdate()
Get last update date.
const STATUS_NOT_ATTEMPTED
setLastUpdate(ilDateTime $a_update)