From c3b82cdd106b06f4a38161450b256bca329fde10 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Apr 2022 21:26:45 +0200 Subject: [PATCH] wip #5220 --- bin/process.php | 8 +++++--- src/Process.php | 26 ++++++++++++++------------ 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/bin/process.php b/bin/process.php index 66e3846..92602fd 100644 --- a/bin/process.php +++ b/bin/process.php @@ -1,8 +1,10 @@ getLocalOut(); \ No newline at end of file diff --git a/src/Process.php b/src/Process.php index 5de1a1d..0f9af17 100644 --- a/src/Process.php +++ b/src/Process.php @@ -7,11 +7,11 @@ use Fluidbook\Tools\Jobs\ProcessFile; class Process extends ProcessFile { protected $page; - protected $file; + protected $out; - public function __construct($file, $page, $format = 'jpg', $resolution = 150, $withGraphics = true, $withTexts = true, $version = 'html') + public function __construct($out, $page, $format = 'jpg', $resolution = 150, $withGraphics = true, $withTexts = true, $version = 'html') { - $this->setFile($file); + $this->setOut($out); $this->setPage($page); parent::__construct($format, $resolution, $withGraphics, $withTexts, $version); } @@ -31,23 +31,25 @@ class Process extends ProcessFile public function getOut() { - $f = $this->getFile(); + return $this->out; } - /** - * @return mixed - */ - public function getFile() + public function getLocalOut() { - return $this->file; + return str_replace('/data1/extranet/wwww/fluidbook/docs/', __DIR__ . '/../files/',$this->getOut()); } /** - * @param mixed $file + * @param mixed $out */ - public function setFile($file): void + public function setOut($out): void + { + $this->out = $out; + } + + public function process() { - $this->file = $file; + } -- 2.39.5