Пример #1
0
 /**
  * Upload a bitstream.
  *
  * @param BitstreamDao $bitstreamdao
  * @param AssetstoreDao $assetstoredao
  * @param bool $copy
  * @return bool
  * @throws Zend_Exception
  */
 public function uploadBitstream($bitstreamdao, $assetstoredao, $copy = false)
 {
     $assetstoretype = $assetstoredao->getType();
     switch ($assetstoretype) {
         case MIDAS_ASSETSTORE_LOCAL:
             $this->_uploadLocalBitstream($bitstreamdao, $assetstoredao, $copy);
             break;
         case MIDAS_ASSETSTORE_REMOTE:
             // Nothing to upload in that case, we return silently
             return true;
         default:
             break;
     }
     return true;
 }