From 9865058420136925e49528655ab30b9807c72488 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 4 Jun 2020 10:41:28 +0200 Subject: [PATCH] fix(exportable): implement missing method Signed-off-by: Thierry Bugier --- inc/targetbase.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/inc/targetbase.class.php b/inc/targetbase.class.php index 1af202733..e3aed16b6 100644 --- a/inc/targetbase.class.php +++ b/inc/targetbase.class.php @@ -1817,4 +1817,15 @@ protected function showActorSettingsForType($actorType, array $actors) { echo ''; } + + public function deleteObsoleteItems(CommonDBTM $container, array $exclude) + { + $keepCriteria = [ + self::$items_id => $container->getID(), + ]; + if (count($exclude) > 0) { + $keepCriteria[] = ['NOT' => ['id' => $exclude]]; + } + return $this->deleteByCriteria($keepCriteria); + } }