Exemplo n.º 1
0
 /**
  * @param FileSync $fileSync
  */
 protected function fileSyncDelete(FileSync $fileSync, BatchJob $raisedJob = null)
 {
     $partnerId = $fileSync->getPartnerId();
     $purgePermission = PermissionPeer::isValidForPartner('PURGE_FILES_ON_DELETE', $partnerId);
     if ($purgePermission) {
         $syncKey = kFileSyncUtils::getKeyForFileSync($fileSync);
         kJobsManager::addDeleteFileJob($raisedJob, null, $partnerId, $syncKey, $fileSync->getFullPath(), $fileSync->getDc());
     }
 }