@@ 399-408 (lines=10) @@ | ||
396 | * |
|
397 | * @return string |
|
398 | */ |
|
399 | public function getTextPreviewUrl($baseUrl = ''): string |
|
400 | { |
|
401 | if (!empty($baseUrl) && is_string($baseUrl)) { |
|
402 | $root = $baseUrl.DIRECTORY_SEPARATOR; |
|
403 | } else { |
|
404 | $root = DIRECTORY_SEPARATOR; |
|
405 | } |
|
406 | ||
407 | return $root . $this->getModule()->thumbStubUrls[UploadModelInterface::FILE_TYPE_TEXT]; |
|
408 | } |
|
409 | ||
410 | /** |
|
411 | * Get other preview url. |
|
@@ 417-427 (lines=11) @@ | ||
414 | * |
|
415 | * @return string |
|
416 | */ |
|
417 | public function getOtherPreviewUrl($baseUrl = ''): string |
|
418 | { |
|
419 | if (!empty($baseUrl) && is_string($baseUrl)) { |
|
420 | $root = $baseUrl.DIRECTORY_SEPARATOR; |
|
421 | } else { |
|
422 | $root = DIRECTORY_SEPARATOR; |
|
423 | } |
|
424 | $module = $this->getModule(); |
|
425 | ||
426 | return $root . $module->thumbStubUrls[UploadModelInterface::FILE_TYPE_OTHER]; |
|
427 | } |
|
428 | ||
429 | /** |
|
430 | * Get thumbnails. |