Admin_TranslationController::xliffExportDownloadAction PHP Метод

xliffExportDownloadAction() публичный Метод

    public function xliffExportDownloadAction()
    {
        $id = $this->getParam("id");
        $exportFile = PIMCORE_SYSTEM_TEMP_DIRECTORY . "/" . $id . ".xliff";
        header("Content-Type: application/x-xliff+xml");
        header('Content-Disposition: attachment; filename="' . basename($exportFile) . '"');
        while (@ob_end_flush()) {
        }
        flush();
        readfile($exportFile);
        @unlink($exportFile);
        exit;
    }