We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b13c01a commit 249728dCopy full SHA for 249728d
inc/questionparameter.class.php
@@ -80,4 +80,15 @@ public function prepareInputforAdd($input) {
80
81
return $input;
82
}
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
94
0 commit comments