* @author Romain Quetiez
* @author Denis Flaven
* @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
*/]]>images/change.pngapprovedassignedclosedimplementedmonitorednewnotapprovedplannedscheduledrejectedvalidatedyesnoSet('close_date', time());
return true;
}]]>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());
}]]>Set('last_update', time());
}]]>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('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;
}]]>";
}
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
images/change.png- 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
images/change.png- 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
images/change.png- 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
images/change.png- 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