Ticket * @author Romain Quetiez * @author Denis Flaven * @license http://www.opensource.org/licenses/gpl-3.0.html LGPL */]]> 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; }]]>
title org_id description ticket_log start_date end_date document_list ci_list contact_list incident_list status reason requestor_id workgroup_id creation_date last_update close_date impact agent_id agent_email supervisor_group_id supervisor_id manager_group_id manager_id outage fallback
finalclass ref title org_id start_date end_date status reason requestor_id workgroup_id creation_date close_date impact agent_id agent_email supervisor_group_id supervisor_id manager_group_id manager_id outage finalclass title start_date status
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
document_list ci_list contact_list incident_list ref title org_id status reason impact description outage fallback creation_date start_date last_update close_date requestor_id workgroup_id agent_id supervisor_group_id supervisor_id manager_group_id manager_id
ref title org_id start_date end_date status reason requestor_id workgroup_id creation_date last_update close_date impact agent_id agent_email supervisor_group_id supervisor_id manager_group_id manager_id outage title org_id start_date status requestor_id
Change bizmodel,searchable,changemgmt true autoincrement change_approved id %1$s images/change.png approval_date true approval_comment true status
title org_id description ticket_log start_date end_date document_list ci_list contact_list incident_list status reason requestor_id workgroup_id creation_date last_update close_date impact agent_id agent_email supervisor_group_id supervisor_id manager_group_id manager_id outage fallback approval_date approval_comment
ref title org_id start_date end_date status reason requestor_id workgroup_id impact agent_id agent_email supervisor_group_id supervisor_id manager_group_id manager_id outage approval_date title org_id start_date status requestor_id
ApprovedChange bizmodel,searchable,changemgmt false autoincrement change_normal id %1$s images/change.png false acceptance_date true acceptance_comment 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
document_list ci_list contact_list incident_list ref title org_id status reason impact description acceptance_comment approval_comment outage fallback creation_date start_date last_update acceptance_date approval_date close_date requestor_id workgroup_id agent_id supervisor_group_id supervisor_id manager_group_id manager_id
ref title org_id start_date end_date status reason requestor_id workgroup_id impact agent_id agent_email supervisor_group_id supervisor_id manager_group_id manager_id outage title org_id start_date status requestor_id
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
document_list ci_list contact_list incident_list ref title org_id status reason impact description approval_comment outage fallback creation_date start_date last_update approval_date close_date requestor_id workgroup_id agent_id supervisor_group_id supervisor_id manager_group_id manager_id
ref title org_id start_date end_date status reason requestor_id workgroup_id creation_date last_update close_date impact agent_id agent_email supervisor_group_id supervisor_id manager_group_id manager_id outage approval_date title org_id start_date status requestor_id
50 0 ChangeManagement overview.xml 1 ChangeManagement Change 2 ChangeManagement Change 3 ChangeManagement 1 Change:Shortcuts fast 2 Change:Shortcuts fast 3 Change:Shortcuts fast 4 Change:Shortcuts fast