/** * @return void */ public function deleteThumb() { if ($this->thumb && is_object($this->thumb)) { $this->thumb->delete(); $this->thumb = null; } }
/** * Deletes an item * * @param Tx_Yag_Domain_Model_Item $item Item to be deleted * @rbacNeedsAccess * @rbacObject Item * @rbacAction delete */ public function deleteItemAction(Tx_Yag_Domain_Model_Item $item) { $item->delete(); $this->itemRepository->syncTranslatedItems(); $this->returnDataAndShutDown(); }
/** * Action for deleting an item * * @param Tx_Yag_Domain_Model_Item $item Item to be deleted * @param Tx_Yag_Domain_Model_Album $album Album to forward to * @return string Rendered delete action * @rbacNeedsAccess * @rbacObject item * @rbacAction delete */ public function deleteAction(Tx_Yag_Domain_Model_Item $item, Tx_Yag_Domain_Model_Album $album = null) { $item->delete(); if ($album) { $this->yagContext->setAlbum($album); } $this->forward('list', 'ItemList'); }
/** * Deletes an item * * @param Tx_Yag_Domain_Model_Item $item Item to be deleted * @rbacNeedsAccess * @rbacObject Item * @rbacAction delete */ public function deleteItemAction(Tx_Yag_Domain_Model_Item $item) { $item->delete(); $this->returnDataAndShutDown(); }