first commit

This commit is contained in:
2025-08-07 13:15:31 +01:00
commit d903893b4c
21854 changed files with 4461308 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<?php
if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
/**
* @since 9.5.0.
*/
class ImpactContext extends CommonDBTM {
/**
* Get ImpactContext for the given ImpactItem
*
* @param ImpactItem $item
* @return ImpactContext|false
*/
public static function findForImpactItem(\ImpactItem $item) {
$impactContext = new self();
$exist = $impactContext->getFromDB($item->fields['impactcontexts_id']);
return $exist ? $impactContext : false;
}
}