add method getService()

This commit is contained in:
Uwe Steinmann 2021-11-19 13:34:55 +01:00
parent be2de9cfc1
commit 582a85947f

View File

@ -47,6 +47,20 @@ class SeedDMS_ConversionMgr {
return false;
}
/**
* Return the service that would be tried first for converting
* the document.
*
* The conversion may not use this service but choose a different
* one when it fails.
*/
public function getService($from, $to) {
if(!empty($this->services[$from][$to]))
return end($this->services[$from][$to]);
else
return null;
}
public function getServices() {
return $this->services;
}