Пример #1
0
 /**
  * @return void
  */
 public function deleteThumb()
 {
     if ($this->thumb && is_object($this->thumb)) {
         $this->thumb->delete();
         $this->thumb = null;
     }
 }
Пример #2
0
 /**
  * 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();
 }
Пример #3
0
 /**
  * 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');
 }
Пример #4
0
 /**
  * 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();
 }