|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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, \ILIAS\Filesystem\Filesystem $tmp_file_system=null) | |
| uploadBackgroundImage (string $imageTempFilename, int $version, ?array $pending_file=null) | |
| 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 | |
| $logger | |
| $tmp_file_system | |
Definition at line 11 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\Filesystem\Filesystem | $tmp_file_system = null |
||
| ) |
Definition at line 69 of file class.ilCertificateBackgroundImageUpload.php.
References $certificatePath, $DIC, $fileSystem, $fileUpload, $language, $legacyPathHelper, $logger, $rootDirectory, $tmp_file_system, $utilHelper, and language().
Here is the call graph for this function:
|
private |
Returns the filesystem path of the background image temp file during upload.
Definition at line 274 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 284 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 261 of file class.ilCertificateBackgroundImageUpload.php.
|
private |
| string | $target |
Definition at line 233 of file class.ilCertificateBackgroundImageUpload.php.
References ILIAS\FileUpload\Location\CUSTOMIZING, ILIAS\FileUpload\Location\STORAGE, ILIAS\FileUpload\Location\TEMPORARY, and ILIAS\FileUpload\Location\WEB.
| 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 |
ILIAS\FileUpload\Exception\IllegalStateException
ILIAS\Filesystem\Exception\FileNotFoundException
ILIAS\Filesystem\Exception\IOException
| ilException | |
| ilFileUtilsException |
Definition at line 132 of file class.ilCertificateBackgroundImageUpload.php.
References $certificatePath, BACKGROUND_IMAGE_NAME, createBackgroundImageTempfilePath(), createBackgroundImageThumbPath(), ilUtil\makeDirParents(), and ilUtil\moveUploadedFile().
Here is the call graph for this function:
|
private |
Definition at line 25 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct(), and uploadBackgroundImage().
|
private |
Definition at line 55 of file class.ilCertificateBackgroundImageUpload.php.
|
private |
Definition at line 40 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 20 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 50 of file class.ilCertificateBackgroundImageUpload.php.
|
private |
Definition at line 30 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 60 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 64 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 35 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 67 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
|
private |
Definition at line 45 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
| const ilCertificateBackgroundImageUpload::BACKGROUND_IMAGE_NAME = 'background.jpg' |
Definition at line 13 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by uploadBackgroundImage().
| const ilCertificateBackgroundImageUpload::BACKGROUND_TEMPORARY_FILENAME = 'background_upload.tmp' |
Definition at line 15 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by createBackgroundImageTempfilePath().
| const ilCertificateBackgroundImageUpload::BACKGROUND_THUMBNAIL_IMAGE_NAME = 'background.jpg.thumb.jpg' |
Definition at line 14 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by createBackgroundImageThumbPath().