diff --git a/core/model/DataObjectSet.php b/core/model/DataObjectSet.php index 6313e90f8..d092e0a6d 100644 --- a/core/model/DataObjectSet.php +++ b/core/model/DataObjectSet.php @@ -97,6 +97,13 @@ class DataObjectSet extends ViewableData implements IteratorAggregate, Countable $item->destroy(); } } + + /** + * Removes all the items in this set. + */ + public function emptyItems() { + $this->items = array(); + } /** * Convert this DataObjectSet to an array of DataObjects.