19 declare(strict_types=1);
39 string $certificatePath,
44 $this->fileSystem = $filesystem;
51 if ($backgroundImagePath ===
'') {
55 if ($this->fileSystem->has($backgroundImagePath)) {
65 if ($backgroundImagePath ===
'') {
69 if ($this->fileSystem->has($backgroundImagePath)) {
78 return $this->webDirectory . $this->certificatePath . self::BACKGROUND_IMAGE_NAME . self::BACKGROUND_THUMBNAIL_FILE_ENDING;
84 [$this->webDirectory,
'//'],
85 [self::PLACEHOLDER_CLIENT_WEB_DIRECTORY,
'/'],
94 $this->certificatePath,
95 self::BACKGROUND_TEMPORARY_UPLOAD_FILE_NAME,
105 return self::VALID_BACKGROUND_IMAGE_EXTENSIONS;
const PLACEHOLDER_CLIENT_WEB_DIRECTORY
hasBackgroundImage(ilCertificateTemplate $template)
const VALID_BACKGROUND_IMAGE_EXTENSIONS
hasBackgroundImageThumbnail(ilCertificateTemplate $template)
const BACKGROUND_THUMBNAIL_FILE_ENDING
__construct(string $certificatePath, Filesystem $filesystem, string $webDirectory=CLIENT_WEB_DIR)
getBackgroundImageThumbPath()
getBackgroundImageDirectory(string $backgroundImagePath='')
const BACKGROUND_TEMPORARY_UPLOAD_FILE_NAME
getValidBackgroundImageFileExtensions()
const BACKGROUND_IMAGE_NAME
getBackgroundImageTempfilePath(string $extension)
Class FlySystemFileAccessTest disabled disabled disabled.