Projekt

Obecné

Profil

Akce

SystemDownloader

The class SystemDownloader (found within SystemDownloader.php) is used for downloading files of specific systems in a specific corpus release, from the underlying file system. This class is very similar to the SystemVersionDownloader class, and, to a lesser extent, to the MetadataExporter class. The class offers only one function. Note that this is just a basic information regarding the class - for more information, see the relevant source file.

SystemDownloader::downloadSystems(integer $corpusId, array[integer] $systemIds)

This function tries to locate and send to user the compressed versions of all versions of systems with the specified IDs in a corpus release with the given ID. In another words, it retrieves all versions of the specified systems that should be present in the specified corpus release, tries to locate them in the file system, packs everything found in the specified compressed folders into a ZIP archive and sends the resulting archive to the user. Any systems or system versions that are not found on the file system are skipped.

warning. Note: This function relies on the existence of the compressed folder within each system version. If the compressed folder doesn't exist or is empty, the relevant system version will be skipped.

Aktualizováno uživatelem Martin Berka před více než 8 roky(ů) · 3 revizí