Skip to content

Commit 249728d

Browse files
committed
fix(exportable): implement missing method
Signed-off-by: Thierry Bugier <[email protected]>
1 parent b13c01a commit 249728d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

inc/questionparameter.class.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,15 @@ public function prepareInputforAdd($input) {
8080

8181
return $input;
8282
}
83+
84+
public function deleteObsoleteItems(CommonDBTM $container, array $exclude)
85+
{
86+
$keepCriteria = [
87+
self::$items_id => $container->getID(),
88+
];
89+
if (count($exclude) > 0) {
90+
$keepCriteria[] = ['NOT' => ['id' => $exclude]];
91+
}
92+
return $this->deleteByCriteria($keepCriteria);
93+
}
8394
}

0 commit comments

Comments
 (0)