seeddms-code/inc/inc.ClassConversionServiceBase.php

55 lines
1019 B
PHP
Raw Normal View History

<?php
/**
* Implementation of conversion service base class
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2021 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Implementation of conversion service base class
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2021 Uwe Steinmann
* @version Release: @package_version@
*/
abstract class SeedDMS_ConversionServiceBase {
/**
* mimetype original file
*/
public $from;
/**
* mimetype converted file
*/
public $to;
/**
* logger
*/
protected $logger;
public function __construct() {
$this->from = null;
$this->to = null;
}
public function setLogger($logger) {
$this->logger = $logger;
}
public function getInfo() {
return 'Conversion service';
}
public function convert($infile, $target = null, $params = array()) {
}
}