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 b13c01a commit 249728d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions inc/questionparameter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,15 @@ public function prepareInputforAdd($input) {

return $input;
}

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 249728d

Please sign in to comment.