Example #1
0
 /**
  * Delete action for deleting an album
  *
  * @param Tx_Yag_Domain_Model_Album $album album that should be deleted
  * @return string	The rendered delete action
  * @rbacNeedsAccess
  * @rbacObject album
  * @rbacAction delete
  */
 public function deleteAction(Tx_Yag_Domain_Model_Album $album)
 {
     $gallery = $album->getGallery();
     $album->delete(TRUE);
     $this->addFlashMessage(LocalizationUtility::translate('tx_yag_controller_album.deletesuccessfull', $this->extensionName), '', FlashMessage::OK);
     $this->yagContext->setGallery($gallery);
     $this->redirect('index', 'Gallery');
 }
Example #2
0
 /**
  * Deletes given album
  *
  * @param Tx_Yag_Domain_Model_Album $album
  * @rbacNeedsAccess
  * @rbacObject Album
  * @rbacAction delete
  */
 public function deleteAlbumAction(Tx_Yag_Domain_Model_Album $album)
 {
     $album->delete();
     $this->albumRepository->syncTranslatedAlbums();
     $this->returnDataAndShutDown();
 }
Example #3
0
 /**
  * Deletes given album
  *
  * @param Tx_Yag_Domain_Model_Album $album
  * @rbacNeedsAccess
  * @rbacObject Album
  * @rbacAction delete
  */
 public function deleteAlbumAction(Tx_Yag_Domain_Model_Album $album)
 {
     $album->delete();
     $this->returnDataAndShutDown();
 }