/** * Remove this item by deleting it * * @param DataClass $item * @todo Allow for amendment of this behaviour - for example, we can remove an item from * an "ActiveItems" DataList by chaning the status to inactive. */ public function remove($item) { // By default, we remove an item from a DataList by deleting it. if ($item instanceof $this->dataClass) { $item->delete(); } }