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 <[email protected]>
  • Loading branch information
btry committed Jun 4, 2020
1 parent 393dfea commit 6897cb1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions inc/target_actor.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,15 @@ public function export($remove_uuid = false) {

return $target_actor;
}

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 6897cb1

Please sign in to comment.