Esempio n. 1
0
 /**
  * Go through existing deposits and fetch their status from the PLN
  */
 function _processStatusUpdates($journal)
 {
     // get deposits that need status updates
     $depositDao =& DAORegistry::getDAO('DepositDAO');
     $depositQueue = $depositDao->getNeedStagingStatusUpdate($journal->getId());
     while ($deposit =& $depositQueue->next()) {
         $depositPackage = new DepositPackage($deposit, $this);
         $depositPackage->updateDepositStatus();
         unset($deposit);
     }
 }