24 require_once
"./Services/Object/classes/class.ilObject.php";
58 if (!empty($image_tempfilename)) {
61 if (!file_exists($imagepath)) {
111 return CLIENT_WEB_DIR .
"/certificates/default/";
150 if (file_exists($filePath) && filesize($filePath) > 0) {
uploadBackgroundImage($image_tempfilename)
Uploads a background image for the certificate.
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getDefaultBackgroundImageThumbPath()
Returns the filesystem path of the background image thumbnail.
getBackgroundImageDefaultFolder()
getBackgroundImageThumbPathWeb()
Returns the web path of the background image thumbnail.
const BACKGROUND_THUMBNAIL_FILE_ENDING
__construct($a_id=0, $a_reference=true)
Constructor public.
getDefaultBackgroundImagePath()
Returns the filesystem path of the background image.
getDefaultBackgroundImageTempfilePath()
Returns the filesystem path of the background image temp file during upload.
Class ilObjCertificateSettings.
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
static convertImage( $a_from, $a_to, $a_target_format="", $a_geometry="", $a_background_color="")
convert image
static removeTrailingPathSeparators($path)
getDefaultBackgroundImagePathWeb()
Returns the web path of the background image.
deleteBackgroundImage()
Deletes the background image of a certificate.
const BACKGROUND_TEMPORARY_UPLOAD_FILE_NAME
__construct(Container $dic, ilPlugin $plugin)
const BACKGROUND_IMAGE_NAME