VersionPress\Synchronizers\SynchronizerFactory::getSynchronizationSequence PHP Method

getSynchronizationSequence() public method

    public function getSynchronizationSequence()
    {
        return $this->synchronizationSequence;
    }

Usage Example

Ejemplo n.º 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");
     }
 }
All Usage Examples Of VersionPress\Synchronizers\SynchronizerFactory::getSynchronizationSequence