|
ILIAS
release_8 Revision v8.24
|
Collaboration diagram for ilCertificateBackgroundImageUpload:Public Member Functions | |
| __construct (FileUpload $fileUpload, string $certificatePath, ilLanguage $language, ilLogger $logger, ?Filesystem $fileSystem=null, ?ilCertificateUtilHelper $utilHelper=null, ?ilCertificateFileUtilsHelper $certificateFileUtilsHelper=null, ?LegacyPathHelperHelper $legacyPathHelper=null, string $rootDirectory=CLIENT_WEB_DIR, string $clientID=CLIENT_ID, ?Filesystem $tmp_file_system=null) | |
| uploadBackgroundImage (string $imageTempFilename, int $version, ?array $pending_file=null) | |
| Uploads a background image for the certificate. More... | |
Private Member Functions | |
| getTargetFilesystem (string $target) | |
| getTargetDir (string $target) | |
| createBackgroundImageTempfilePath (string $extension) | |
| Returns the filesystem path of the background image temp file during upload. More... | |
| createBackgroundImageThumbPath () | |
| Returns the filesystem path of the background image thumbnail. More... | |
Private Attributes | |
| const | BACKGROUND_IMAGE_NAME = 'background.jpg' |
| const | BACKGROUND_THUMBNAIL_IMAGE_NAME = 'background.jpg.thumb.jpg' |
| const | BACKGROUND_TEMPORARY_FILENAME = 'background_upload_tmp' |
| FileUpload | $fileUpload |
| string | $certificatePath |
| ilLanguage | $language |
| string | $rootDirectory |
| Filesystem | $fileSystem |
| ilCertificateUtilHelper | $utilHelper |
| ilCertificateFileUtilsHelper | $fileUtilsHelper |
| string | $clientId |
| LegacyPathHelperHelper | $legacyPathHelper |
| ilLogger | $logger |
| Filesystem | $tmp_file_system |
Definition at line 32 of file class.ilCertificateBackgroundImageUpload.php.
| ilCertificateBackgroundImageUpload::__construct | ( | FileUpload | $fileUpload, |
| string | $certificatePath, | ||
| ilLanguage | $language, | ||
| ilLogger | $logger, | ||
| ?Filesystem | $fileSystem = null, |
||
| ?ilCertificateUtilHelper | $utilHelper = null, |
||
| ?ilCertificateFileUtilsHelper | $certificateFileUtilsHelper = null, |
||
| ?LegacyPathHelperHelper | $legacyPathHelper = null, |
||
| string | $rootDirectory = CLIENT_WEB_DIR, |
||
| string | $clientID = CLIENT_ID, |
||
| ?Filesystem | $tmp_file_system = null |
||
| ) |
Definition at line 49 of file class.ilCertificateBackgroundImageUpload.php.
References $certificatePath, $DIC, $fileSystem, $fileUpload, $language, $legacyPathHelper, $logger, $rootDirectory, $tmp_file_system, $utilHelper, ILIAS\UI\examples\Symbol\Glyph\Language\language(), and ILIAS\Repository\logger().
Here is the call graph for this function:
|
private |
Returns the filesystem path of the background image temp file during upload.
Definition at line 259 of file class.ilCertificateBackgroundImageUpload.php.
|
private |
Returns the filesystem path of the background image thumbnail.
Definition at line 273 of file class.ilCertificateBackgroundImageUpload.php.
References BACKGROUND_THUMBNAIL_IMAGE_NAME.
Referenced by uploadBackgroundImage().
Here is the caller graph for this function:
|
private |
Definition at line 249 of file class.ilCertificateBackgroundImageUpload.php.
|
private |
Definition at line 225 of file class.ilCertificateBackgroundImageUpload.php.
References CLIENT_DATA_DIR.
| ilCertificateBackgroundImageUpload::uploadBackgroundImage | ( | string | $imageTempFilename, |
| int | $version, | ||
| ?array | $pending_file = null |
||
| ) |
Uploads a background image for the certificate.
Creates a new directory for the certificate if needed. Removes an existing certificate image if necessary
| string | $imageTempFilename | Name of the temporary uploaded image file |
| int | $version | - Version of the current certifcate template |
| array | null | $pending_file |
| IllegalStateException | |
| FileNotFoundException | |
| IOException | |
| ilException | |
| ilFileUtilsException |
Definition at line 111 of file class.ilCertificateBackgroundImageUpload.php.
References $certificatePath, $version, BACKGROUND_IMAGE_NAME, createBackgroundImageThumbPath(), ilFileUtils\makeDirParents(), and ilFileUtils\moveUploadedFile().
Here is the call graph for this function:
|
private |
Definition at line 38 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct(), and uploadBackgroundImage().
|
private |
Definition at line 44 of file class.ilCertificateBackgroundImageUpload.php.
|
private |
Definition at line 41 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 37 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 43 of file class.ilCertificateBackgroundImageUpload.php.
|
private |
Definition at line 39 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 45 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 46 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 40 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 47 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 42 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 34 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by uploadBackgroundImage().
|
private |
Definition at line 36 of file class.ilCertificateBackgroundImageUpload.php.
|
private |
Definition at line 35 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by createBackgroundImageThumbPath().