19 declare(strict_types=1);
35 private readonly
string $certificatePath,
44 if ($backgroundImagePath ===
'') {
48 return $this->fileSystem->has($backgroundImagePath);
53 return $this->webDirectory . $this->certificatePath . self::BACKGROUND_IMAGE_NAME . self::BACKGROUND_THUMBNAIL_FILE_ENDING;
59 [$this->webDirectory,
'//'],
60 [self::PLACEHOLDER_CLIENT_WEB_DIRECTORY,
'/'],
69 $this->certificatePath,
70 self::BACKGROUND_TEMPORARY_UPLOAD_FILE_NAME,
80 return self::VALID_BACKGROUND_IMAGE_EXTENSIONS;
hasBackgroundImage(ilCertificateTemplate $template)
final const BACKGROUND_IMAGE_NAME
final const PLACEHOLDER_CLIENT_WEB_DIRECTORY
__construct(private readonly string $certificatePath, private readonly Filesystem $fileSystem, private readonly string $webDirectory=CLIENT_WEB_DIR)
getBackgroundImageThumbPath()
final const VALID_BACKGROUND_IMAGE_EXTENSIONS
getBackgroundImageDirectory(string $backgroundImagePath='')
final const BACKGROUND_THUMBNAIL_FILE_ENDING
getValidBackgroundImageFileExtensions()
final const BACKGROUND_TEMPORARY_UPLOAD_FILE_NAME
getBackgroundImageTempfilePath(string $extension)