Exemple #1
0
 /**
  * Saves all eligible entities into the file system storage (the 'db' folder)
  */
 private function saveDatabaseToStorages()
 {
     if (is_dir(VERSIONPRESS_MIRRORING_DIR)) {
         FileSystem::remove(VERSIONPRESS_MIRRORING_DIR);
     }
     FileSystem::mkdir(VERSIONPRESS_MIRRORING_DIR);
     $entityNames = $this->synchronizerFactory->getSynchronizationSequence();
     foreach ($entityNames as $entityName) {
         $this->createVpidsForEntitiesOfType($entityName);
         $this->saveEntitiesOfTypeToStorage($entityName);
         $this->reportProgressChange("All " . $entityName . " saved into files");
     }
 }
 /**
  * Saves all eligible entities into the file system storage (the 'db' folder)
  */
 private function saveDatabaseToStorages()
 {
     if (is_dir(VP_VPDB_DIR)) {
         FileSystem::remove(VP_VPDB_DIR);
     }
     FileSystem::mkdir(VP_VPDB_DIR);
     $entityNames = $this->synchronizerFactory->getSynchronizationSequence();
     foreach ($entityNames as $entityName) {
         $this->createVpidsForEntitiesOfType($entityName);
         $this->saveEntitiesOfTypeToStorage($entityName);
     }
     $mnReferenceDetails = $this->dbSchema->getAllMnReferences();
     foreach ($mnReferenceDetails as $referenceDetail) {
         $this->saveMnReferences($referenceDetail);
     }
 }