| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
 Collaboration diagram for ilCertificateBackgroundImageUpload:Public Member Functions | |
| __construct (private readonly FileUpload $fileUpload, private readonly string $certificatePath, private readonly ilLanguage $language, private readonly string $rootDirectory=CLIENT_WEB_DIR, private readonly string $clientId=CLIENT_ID, ?Filesystem $fileSystem=null, ?ilCertificateUtilHelper $utilHelper=null, ?ilCertificateFileUtilsHelper $certificateFileUtilsHelper=null, ?LegacyPathHelperHelper $legacyPathHelper=null, ?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 | |
| uploadFile (string $temporaryFilename, ?array $pending_file=null) | |
| 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' | 
| readonly Filesystem | $fileSystem | 
| readonly ilCertificateUtilHelper | $utilHelper | 
| readonly ilCertificateFileUtilsHelper | $fileUtilsHelper | 
| readonly LegacyPathHelperHelper | $legacyPathHelper | 
| readonly Filesystem | $tmp_file_system | 
Definition at line 31 of file class.ilCertificateBackgroundImageUpload.php.
| ilCertificateBackgroundImageUpload::__construct | ( | private readonly FileUpload | $fileUpload, | 
| private readonly string | $certificatePath, | ||
| private readonly ilLanguage | $language, | ||
| private readonly string | $rootDirectory = CLIENT_WEB_DIR,  | 
        ||
| private readonly string | $clientId = CLIENT_ID,  | 
        ||
| ?Filesystem | $fileSystem = null,  | 
        ||
| ?ilCertificateUtilHelper | $utilHelper = null,  | 
        ||
| ?ilCertificateFileUtilsHelper | $certificateFileUtilsHelper = null,  | 
        ||
| ?LegacyPathHelperHelper | $legacyPathHelper = null,  | 
        ||
| ?Filesystem | $tmp_file_system = null  | 
        ||
| ) | 
Definition at line 42 of file class.ilCertificateBackgroundImageUpload.php.
References $DIC, $fileSystem, $legacyPathHelper, $tmp_file_system, and $utilHelper.
      
  | 
  private | 
Returns the filesystem path of the background image temp file during upload.
Definition at line 227 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by uploadFile().
 Here is the caller graph for this function:
      
  | 
  private | 
Returns the filesystem path of the background image thumbnail.
Definition at line 241 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by uploadBackgroundImage().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 217 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by uploadFile().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 201 of file class.ilCertificateBackgroundImageUpload.php.
References CLIENT_DATA_DIR.
Referenced by uploadFile().
 Here is the caller graph for this function:| 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 | 
| IllegalStateException | |
| FileNotFoundException | |
| IOException | |
| ilException | |
| ilFileUtilsException | 
Definition at line 94 of file class.ilCertificateBackgroundImageUpload.php.
References createBackgroundImageThumbPath(), ilFileUtils\makeDirParents(), ilFileUtils\moveUploadedFile(), and uploadFile().
 Here is the call graph for this function:
      
  | 
  private | 
| FileNotFoundException | |
| IOException | |
| IllegalStateException | |
| ilException | |
| ilFileUtilsException | 
Definition at line 148 of file class.ilCertificateBackgroundImageUpload.php.
References createBackgroundImageTempfilePath(), getTargetDir(), getTargetFilesystem(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), and ILIAS\FileUpload\DTO\ProcessingStatus\REJECTED.
Referenced by uploadBackgroundImage().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 36 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
      
  | 
  private | 
Definition at line 38 of file class.ilCertificateBackgroundImageUpload.php.
      
  | 
  private | 
Definition at line 39 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 37 of file class.ilCertificateBackgroundImageUpload.php.
Referenced by __construct().
      
  | 
  private | 
Definition at line 33 of file class.ilCertificateBackgroundImageUpload.php.
      
  | 
  private | 
Definition at line 35 of file class.ilCertificateBackgroundImageUpload.php.
      
  | 
  private | 
Definition at line 34 of file class.ilCertificateBackgroundImageUpload.php.