src/Helper/ToolboxFile.php
protected function getDownloadLink($strFile)
    {
        if (!isset($_SESSION['metaModels_downloads'][$strFile])) {
            $_SESSION['metaModels_downloads'][$strFile] = md5(uniqid());
        }

        return UrlBuilder::fromUrl(Environment::get('request'))
            ->setQueryParameter('file', urlencode($strFile))
            ->setQueryParameter('fileKey', $_SESSION['metaModels_downloads'][$strFile])
            ->getUrl();
    }
protected function getDownloadLink($strFile)
    {
        if (!isset($_SESSION['metaModels_downloads'][$strFile])) {
            $_SESSION['metaModels_downloads'][$strFile] = md5(uniqid());
        }

        return UrlBuilder::fromUrl(Environment::get('request'))
            ->setQueryParameter('file', urlencode($strFile))
            ->setQueryParameter('fileKey', $_SESSION['metaModels_downloads'][$strFile])
            ->getUrl();
    }
Generate an URL for downloading the given file.

@param string $strFile The file that shall be downloaded.

@return string

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)