mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
conversion service gets reference to conversion mgr when service is added
This commit is contained in:
parent
0a3f8dd180
commit
872c66158b
|
@ -38,6 +38,7 @@ class SeedDMS_ConversionMgr {
|
|||
}
|
||||
|
||||
public function addService($service) {
|
||||
$service->setConversionMgr($this);
|
||||
$this->services[$service->from][$service->to][] = $service;
|
||||
return $service;
|
||||
}
|
||||
|
|
|
@ -36,6 +36,11 @@ abstract class SeedDMS_ConversionServiceBase {
|
|||
*/
|
||||
protected $logger;
|
||||
|
||||
/**
|
||||
* conversion manager
|
||||
*/
|
||||
protected $conversionmgr;
|
||||
|
||||
/**
|
||||
* @var $success set to false if conversion failed
|
||||
*/
|
||||
|
@ -45,12 +50,22 @@ abstract class SeedDMS_ConversionServiceBase {
|
|||
$this->from = null;
|
||||
$this->to = null;
|
||||
$this->success = true;
|
||||
$this->logger = null;
|
||||
$this->conversionmgr = null;
|
||||
}
|
||||
|
||||
public function setLogger($logger) {
|
||||
$this->logger = $logger;
|
||||
}
|
||||
|
||||
public function setConversionMgr($conversionmgr) {
|
||||
$this->conversionmgr = $conversionmgr;
|
||||
}
|
||||
|
||||
public function getConversionMgr() {
|
||||
return $this->conversionmgr;
|
||||
}
|
||||
|
||||
public function getInfo() {
|
||||
return 'Conversion service';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user