Pimcore\Web2Print\Processor\WkHtmlToPdf::getTempFileUrl PHP Метод

getTempFileUrl() публичный статический Метод

public static getTempFileUrl ( )
    public static function getTempFileUrl()
    {
        $web2printConfig = Config::getWeb2PrintConfig();
        if ($web2printConfig->wkhtml2pdfHostname) {
            return $web2printConfig->wkhtml2pdfHostname . "/website/var/tmp/";
        } elseif (\Pimcore\Config::getSystemConfig()->general->domain) {
            $hostname = \Pimcore\Config::getSystemConfig()->general->domain;
        } else {
            $hostname = $_SERVER["HTTP_HOST"];
        }
        $protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
        return $protocol . "://" . $hostname . "/website/var/tmp/";
    }