mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
add method getService()
This commit is contained in:
parent
be2de9cfc1
commit
582a85947f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user