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