class Process extends ProcessFile
{
+ protected const DISTANT_ROOT = '/data1/extranet/www/fluidbook/docs/';
+ protected const LOCAL_ROOT = '/usr/local/fluidbook_processfarm/files/';
+
protected $page;
protected $out;
protected $force = false;
protected $mobileRatio = 1;
protected $resolutionRatio = 1;
+ protected $filespath;
public function __construct($out, $page, $resolutionRatio, $mobileRatio, $format = 'jpg', $resolution = 150, $withGraphics = true, $withTexts = true, $version = 'html', $force = false)
{
+
+ $this->filespath = realpath(__DIR__ . '/../files/');
$this->setOut($out);
$this->setPage($page);
$this->setForce(!!$force);
public function getOut()
{
- return str_replace('/data1/extranet/www/fluidbook/docs/', realpath(__DIR__ . '/../files/') . '/', $this->getDistantOut());
+ return str_replace(self::DISTANT_ROOT, self::LOCAL_ROOT, $this->getDistantOut());
}
/**
public function process()
{
- return $this->getPath($this->isForce());
+ return str_replace(self::LOCAL_ROOT, self::DISTANT_ROOT, $this->getPath($this->isForce()));
}
}
\ No newline at end of file