]> _ Git - fluidbook_processfarm.git/commitdiff
wip #5220
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Apr 2022 19:03:35 +0000 (21:03 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Apr 2022 19:03:35 +0000 (21:03 +0200)
.ssh/authorized_keys [new file with mode: 0644]
bin/process [new file with mode: 0644]
src/Process.php [new file with mode: 0644]

diff --git a/.ssh/authorized_keys b/.ssh/authorized_keys
new file mode 100644 (file)
index 0000000..2330a97
--- /dev/null
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3vHNE7na68aUPFwAK4h3VW+PR4GZaLsTCdySLdt8974jKltMDfWdEbM//mQOm4nOLDkPkbn+TX0GuTNu/SnFTP/qnG7e+p+pqhuYrvw9CHBHtsGoPZS1ZWs53wuXbuJmYTzJMaMV+dibRh2rX/uzH7dBNVQJMGFcQkjrq/UnhJTgKZPprhx2tDV4Rm72GXH4JOi+yautM7jK21gpxdFUJy7VaNaPB1iqcCikn+htCNs1n8BjVRwAMPI9AB6eEgfX68DyVF80TGLyWxlCumFOZXDELhOneJtO0zFMSEuBVXbPm2fNq1jaMaeqgmZqQiZNM0o4hqW/ZLcRH0k+gGXHH extranet@amarcord.cubedesigners.com
\ No newline at end of file
diff --git a/bin/process b/bin/process
new file mode 100644 (file)
index 0000000..55e2208
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/bin/php8.1 -f /usr/local/fluidbook_processfarm/bin/process.php --
\ No newline at end of file
diff --git a/src/Process.php b/src/Process.php
new file mode 100644 (file)
index 0000000..5de1a1d
--- /dev/null
@@ -0,0 +1,54 @@
+<?php
+
+namespace Fluidbook\Farmer;
+
+use Fluidbook\Tools\Jobs\ProcessFile;
+
+class Process extends ProcessFile
+{
+    protected $page;
+    protected $file;
+
+    public function __construct($file, $page, $format = 'jpg', $resolution = 150, $withGraphics = true, $withTexts = true, $version = 'html')
+    {
+        $this->setFile($file);
+        $this->setPage($page);
+        parent::__construct($format, $resolution, $withGraphics, $withTexts, $version);
+    }
+
+    /**
+     * @param mixed $page
+     */
+    public function setPage($page): void
+    {
+        $this->page = $page;
+    }
+
+    public function getPage(): int
+    {
+        return $this->page;
+    }
+
+    public function getOut()
+    {
+        $f = $this->getFile();
+    }
+
+    /**
+     * @return mixed
+     */
+    public function getFile()
+    {
+        return $this->file;
+    }
+
+    /**
+     * @param mixed $file
+     */
+    public function setFile($file): void
+    {
+        $this->file = $file;
+    }
+
+
+}
\ No newline at end of file