40 $this->fileSystem = $filesystem;
52 if ($backgroundImagePath ===
'') {
56 if ($this->fileSystem->has($backgroundImagePath)) {
70 if ($backgroundImagePath ===
'') {
74 if ($this->fileSystem->has($backgroundImagePath)) {
87 return $this->webDirectory . $this->certificatePath . self::BACKGROUND_IMAGE_NAME . self::BACKGROUND_THUMBNAIL_FILE_ENDING;
98 array($this->webDirectory,
'//'),
99 array(self::PLACEHOLDER_CLIENT_WEB_DIRECTORY,
'/'),
111 return $this->webDirectory . $this->certificatePath . self::BACKGROUND_TEMPORARY_UPLOAD_FILE_NAME;
const PLACEHOLDER_CLIENT_WEB_DIRECTORY
hasBackgroundImage(ilCertificateTemplate $template)
Checks for the background image of the certificate.
Class ChatMainBarProvider .
__construct(string $certificatePath, \ILIAS\Filesystem\Filesystem $filesystem, $webDirectory=CLIENT_WEB_DIR)
hasBackgroundImageThumbnail(ilCertificateTemplate $template)
const BACKGROUND_THUMBNAIL_FILE_ENDING
getBackgroundImageThumbPath()
Returns the filesystem path of the background image thumbnail.
getBackgroundImageTempfilePath()
Returns the filesystem path of the background image temp file during upload.
const BACKGROUND_TEMPORARY_UPLOAD_FILE_NAME
getBackgroundImageDirectory($backgroundImagePath='')
Returns the filesystem path of the background image.
const BACKGROUND_IMAGE_NAME
Class FlySystemFileAccessTest.