Ticket
bizmodel,searchable,changemgmt
true
autoincrement
change
id
%1$s
images/change.png
approved
assigned
closed
implemented
monitored
new
notapproved
plannedscheduled
rejected
validated
status
new
true
reason
true
org_id]]>
requestor_id
Person
true
DEL_MANUAL
requestor_id
email
org_id
Organization
false
DEL_AUTO
org_id
name
workgroup_id
Team
true
DEL_MANUAL
workgroup_id
name
creation_date
true
last_update
true
end_date
true
close_date
true
impact
true
workgroup_id]]>
agent_id
Person
true
DEL_MANUAL
agent_id
name
agent_id
email
supervisor_group_id
Team
true
DEL_MANUAL
supervisor_group_id
name
supervisor_group_id]]>
supervisor_id
Person
true
DEL_MANUAL
supervisor_id
email
manager_group_id
Team
true
DEL_MANUAL
manager_group_id
name
manager_group_id]]>
manager_id
Person
true
DEL_MANUAL
manager_id
email
yes
no
outage
no
false
fallback
true
status
false
public
StimulusUserAction
Set('close_date', time());
return true;
}]]>
false
protected
Overload-DBObject
Get('contact_list');
$oToImpact = $this->Get('ci_list');
$oImpactedInfras = DBObjectSet::FromLinkSet($this, 'ci_list', 'ci_id');
$aComputed = $oImpactedInfras->GetRelatedObjects('impacts', 10);
if (isset($aComputed['FunctionalCI']) && is_array($aComputed['FunctionalCI']))
{
foreach($aComputed['FunctionalCI'] as $iKey => $oObject)
{
$oNewLink = new lnkTicketToCI();
$oNewLink->Set('ci_id', $iKey);
$oToImpact->AddObject($oNewLink);
}
}
if (isset($aComputed['Contact']) && is_array($aComputed['Contact']))
{
foreach($aComputed['Contact'] as $iKey => $oObject)
{
$oNewLink = new lnkTicketToContact();
$oNewLink->Set('contact_id', $iKey);
$oNewLink->Set('role', 'contact automatically computed');
$oToNotify->AddObject($oNewLink);
}
}
$this->Set('creation_date', time());
$this->Set('last_update', time());
}]]>
false
protected
Overload-DBObject
Set('last_update', time());
}]]>
false
public
Overload-DBObject
Get('ref');
if (strlen($sCurrRef) == 0)
{
$iKey = $this->GetKey();
if ($iKey < 0)
{
// Object not yet in the Database
$iKey = MetaModel::GetNextKey(get_class($this));
}
$sName = sprintf('C-%06d', $iKey);
$this->Set('ref', $sName);
}
}]]>
/**
* Get the icon representing this object
* @param boolean $bImgTag If true the result is a full IMG tag (or an emtpy string if no icon is defined)
* @return string Either the full IMG tag ($bImgTag == true) or just the path to the icon file
*/
false
public
Overload-DBObject
Get('status');
switch($this->GetState())
{
case 'approved':
case 'implemented':
case 'monitored':
$sIcon = self::MakeIconFromName('change-approved.png');
break;
case 'rejected':
case 'notapproved':
$sIcon = self::MakeIconFromName('change-rejected.png');
break;
case 'closed':
$sIcon = self::MakeIconFromName('change-closed.png');
break;
default:
$sIcon = MetaModel::GetClassIcon(get_class($this), $bImgTag);
}
return $sIcon;
}]]>
true
protected
Overload-DBObject
";
}
else
{
$sIcon = $sPath;
}
}
return $sIcon;
}]]>
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
190
-
200
-
210
-
220
-
230
-
240
-
250
-
260
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
190
-
200
-
10
-
20
-
30
-
40
Change
bizmodel,searchable,changemgmt
false
autoincrement
change_routine
id
%1$s
images/change.png
false
status
ev_assign
assigned
ev_plan
plannedscheduled
ev_implement
implemented
ev_monitor
monitored
ev_finish
closed
SetClosureDate
ev_finish
closed
SetClosureDate
-
10
-
20
-
30
-
40
-
50
-
10
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
20
-
10
-
20
-
60
-
10
-
10
-
20
-
30
-
40
-
20
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
190
-
200
-
10
-
20
-
30
-
40
-
50
Change
bizmodel,searchable,changemgmt
true
autoincrement
change_approved
id
%1$s
images/change.png
approval_date
true
status
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
190
-
200
-
210
-
220
-
230
-
240
-
250
-
260
-
270
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
10
-
20
-
30
-
40
-
50
ApprovedChange
bizmodel,searchable,changemgmt
false
autoincrement
change_normal
id
%1$s
images/change.png
false
acceptance_date
true
status
ev_validate
validated
ev_reject
rejected
ev_assign
assigned
ev_reopen
new
ev_plan
plannedscheduled
ev_approve
approved
ev_notapprove
notapproved
ev_implement
implemented
ev_replan
plannedscheduled
ev_monitor
monitored
ev_finish
closed
SetClosureDate
ev_finish
closed
SetClosureDate
-
10
-
20
-
30
-
40
-
50
-
10
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
20
-
30
-
40
-
60
-
10
-
10
-
20
-
30
-
40
-
50
-
60
-
20
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
10
-
20
-
30
-
40
-
50
ApprovedChange
bizmodel,searchable,changemgmt
false
autoincrement
change_emergency
id
%1$s
images/change.png
false
status
ev_assign
assigned
ev_plan
plannedscheduled
ev_approve
approved
ev_notapprove
notapproved
ev_implement
implemented
ev_replan
plannedscheduled
ev_monitor
monitored
ev_finish
closed
SetClosureDate
ev_finish
closed
SetClosureDate
-
10
-
20
-
30
-
40
-
50
-
10
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
20
-
20
-
30
-
60
-
10
-
10
-
20
-
30
-
40
-
50
-
20
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
10
-
20
-
30
-
40
-
50
-
60
-
70
-
80
-
90
-
100
-
110
-
120
-
130
-
140
-
150
-
160
-
170
-
180
-
190
-
200
-
210
-
10
-
20
-
30
-
40
-
50