user getClassname() for SeedDMS_Core_DocumentFile

This commit is contained in:
Uwe Steinmann 2023-01-04 14:31:28 +01:00
parent dbe7f36eb0
commit 2cbe041b60

View File

@ -31,7 +31,8 @@ class SeedDMS_Preview_PdfPreviewer extends SeedDMS_Preview_Base {
} /* }}} */ } /* }}} */
/** /**
* Return the physical filename of the preview image on disk * Return the physical filename of the preview image on disc
* including the path
* *
* @param object $object document content or document file * @param object $object document content or document file
* @return string file name of preview image * @return string file name of preview image
@ -47,7 +48,7 @@ class SeedDMS_Preview_PdfPreviewer extends SeedDMS_Preview_Base {
case $dms->getClassname('documentcontent'): case $dms->getClassname('documentcontent'):
$target = $dir.'p'.$object->getVersion(); $target = $dir.'p'.$object->getVersion();
break; break;
case "SeedDMS_Core_DocumentFile": case $dms->getClassname('documentfile'):
$target = $dir.'f'.$object->getID(); $target = $dir.'f'.$object->getID();
break; break;
default: default: