|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for ilCertificateBackgroundImageUpload:Public Member Functions | |
| __construct (\ILIAS\FileUpload\FileUpload $fileUpload, string $certificatePath, ilLanguage $language, ilLogger $logger, \ILIAS\Filesystem\Filesystem $fileSystem=null, ilCertificateUtilHelper $utilHelper=null, ilCertificateFileUtilsHelper $certificateFileUtilsHelper=null, LegacyPathHelperHelper $legacyPathHelper=null, string $rootDirectory=CLIENT_WEB_DIR, string $clientID=CLIENT_ID) | |
| uploadBackgroundImage (string $imageTempFilename, int $version) | |
| Uploads a background image for the certificate. More... | |
Data Fields | |
| const | BACKGROUND_IMAGE_NAME = 'background.jpg' |
| const | BACKGROUND_THUMBNAIL_IMAGE_NAME = 'background.jpg.thumb.jpg' |
| const | BACKGROUND_TEMPORARY_FILENAME = 'background_upload.tmp' |
Private Member Functions | |
| getTargetFilesystem (string $target) | |
| getTargetDir (string $target) | |
| createBackgroundImageTempfilePath () | |
| 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 | |
| $fileUpload | |
| $certificatePath | |
| $language | |
| $rootDirectory | |
| $fileSystem | |
| $utilHelper | |
| $fileUtilsHelper | |
| $clientId | |
| $legacyPathHelper | |
Definition at line 7 of file class.ilCertificateBackgroundImageUpload.php.
| ilCertificateBackgroundImageUpload::__construct | ( | \ILIAS\FileUpload\FileUpload | $fileUpload, |
| string | $certificatePath, | ||
| ilLanguage | $language, | ||
| ilLogger | $logger, | ||
| \ILIAS\Filesystem\Filesystem | $fileSystem = null, |
||
| ilCertificateUtilHelper | $utilHelper = null, |
||
| ilCertificateFileUtilsHelper | $certificateFileUtilsHelper = null, |
||
| LegacyPathHelperHelper | $legacyPathHelper = null, |
||
| string | $rootDirectory = CLIENT_WEB_DIR, |
||
| string | $clientID = CLIENT_ID |
||
| ) |
| \ILIAS\FileUpload\FileUpload | $fileUpload | |
| string | $certificatePath | |
| ilLanguage | $language | |
| ilLogger | $logger | |
| \ILIAS\Filesystem\Filesystem | null | $fileSystem | |
| ilCertificateUtilHelper | null | $utilHelper | |
| ilCertificateFileUtilsHelper | null | $certificateFileUtilsHelper | |
| LegacyPathHelperHelper | null | $legacyPathHelper | |
| string | $rootDirectory | |
| string | $clientID |
Definition at line 70 of file class.ilCertificateBackgroundImageUpload.php.
References $certificatePath, $DIC, $fileSystem, $fileUpload, $language, $legacyPathHelper, $rootDirectory, and $utilHelper.
|
private |
Returns the filesystem path of the background image temp file during upload.
Definition at line 260 of file class.ilCertificateBackgroundImageUpload.php.
References BACKGROUND_TEMPORARY_FILENAME.
Referenced by uploadBackgroundImage().
Here is the caller graph for this function:
|
private |
Returns the filesystem path of the background image thumbnail.
Definition at line 270 of file class.ilCertificateBackgroundImageUpload.php.
References BACKGROUND_THUMBNAIL_IMAGE_NAME.
Referenced by uploadBackgroundImage().
Here is the caller graph for this function:
|
private |
| $target |
Definition at line 247 of file class.ilCertificateBackgroundImageUpload.php.
References $target.
|
private |
| string | $target |
Definition at line 219 of file class.ilCertificateBackgroundImageUpload.php.
References $target, ILIAS\FileUpload\Location\CUSTOMIZING, ILIAS\FileUpload\Location\STORAGE, ILIAS\FileUpload\Location\TEMPORARY, and ILIAS\FileUpload\Location\WEB.
| ilCertificateBackgroundImageUpload::uploadBackgroundImage | ( | string | $imageTempFilename, |
| int | $version | ||
| ) |
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 |
ILIAS\FileUpload\Exception\IllegalStateException
ILIAS\Filesystem\Exception\FileNotFoundException
ILIAS\Filesystem\Exception\IOException
| ilException | |
| ilFileUtilsException |
Definition at line 125 of file class.ilCertificateBackgroundImageUpload.php.
References $certificatePath, $version, BACKGROUND_IMAGE_NAME, createBackgroundImageTempfilePath(), createBackgroundImageThumbPath(), and ilUtil\makeDirParents().
Here is the call graph for this function:
|
private |
Definition at line 21 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct(), and uploadBackgroundImage().
|
private |
Definition at line 51 of file class.ilCertificateBackgroundImageUpload.php.
|
private |
Definition at line 36 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 16 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 46 of file class.ilCertificateBackgroundImageUpload.php.
|
private |
Definition at line 26 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 56 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 31 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 41 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
| const ilCertificateBackgroundImageUpload::BACKGROUND_IMAGE_NAME = 'background.jpg' |
Definition at line 9 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by uploadBackgroundImage().
| const ilCertificateBackgroundImageUpload::BACKGROUND_TEMPORARY_FILENAME = 'background_upload.tmp' |
Definition at line 11 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by createBackgroundImageTempfilePath().
| const ilCertificateBackgroundImageUpload::BACKGROUND_THUMBNAIL_IMAGE_NAME = 'background.jpg.thumb.jpg' |
Definition at line 10 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by createBackgroundImageThumbPath().