function get_xliff_file($job_id) { $xliff = new WPML_TM_xliff(); $xliff_content = $xliff->generate_job_xliff($job_id); $file = fopen('php://temp', 'r+'); fwrite($file, $xliff_content); rewind($file); }
/** * @param int $job_id * @param string $xliff_version * * @return string */ private function get_xliff_file($job_id, $xliff_version = WPML_XLIFF_DEFAULT_VERSION) { $xliff = new WPML_TM_xliff($xliff_version); return $xliff->generate_job_xliff($job_id); }