Projekt

Obecné

Profil

Akce

SystemVersionDownloader

The class SystemVersionDownloader (found within SystemVersionDownloader.php) is used for downloading files of specific system version in a specific corpus release, from the underlying file system. This class is very similar to the SystemDownloader 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.

SystemVersionDownloader::downloadSystemVersions(integer $corpusId, array[integer] $systemVersionIds)

This function tries to locate and send to user the compressed versions of all system versions with given IDs, in a corpus release with given ID. In another words, it tries to locate all specified system versions in the file system, packs everything found in their 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í