/** * Sets an item as removed in the response. */ public function removeItemFromJs(ImceItem $item) { $this->removePathFromJs($item->getPath()); }
/** * Removes an item from the item list. */ public function removeItem(ImceItem $item) { if ($this === $item->parent) { $item->deselect(); $item->parent = NULL; $name = $item->name; unset($this->items[$name]); if ($item->type === 'folder') { unset($this->subfolders[$name]); $item->setPath(NULL); } else { unset($this->files[$name]); } return $item; } }