Skip to content

Commit

Permalink
fix(exportable): implement missing method
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jun 4, 2020
1 parent 990a1ad commit 9865058
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions inc/targetbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1817,4 +1817,15 @@ protected function showActorSettingsForType($actorType, array $actors) {

echo '</td>';
}

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);
}
}

0 comments on commit 9865058

Please sign in to comment.