/**
  * @return RokGallery_FileDeleteQueue
  */
 public function &getInstance()
 {
     if (!isset(self::$_instance)) {
         self::$_instance = new RokGallery_Queue_DirectoryDelete();
     }
     return self::$_instance;
 }
Example #2
0
 /**
  * @param Doctrine_Event $event
  */
 public function postTransactionRollback(Doctrine_Event $event)
 {
     RokGallery_Queue_FileDelete::clear();
     RokGallery_Queue_DirectoryDelete::clear();
     RokGallery_Queue_FileCreate::process();
     RokGallery_Queue_DirectoryCreate::process();
 }
Example #3
0
 /**
  * @param Doctrine_Event $event
  */
 public function preDelete(Doctrine_Event $event)
 {
     // Queue the directory for deletion
     RokGallery_Queue_DirectoryDelete::add($this->getDirectoryPath());
 }