19 declare(strict_types=1);
49 move_uploaded_file($file_info[
'tmp_name'], $target);
51 if ($which === self::IMG_ABSTRACT) {
54 if ($which === self::IMG_EXTRO) {
64 if ($which === self::IMG_ABSTRACT) {
68 if ($which === self::IMG_EXTRO) {
72 if ($delete !==
'' && str_starts_with($delete, $this->
getStoragePath())) {
88 public function getSuffix(
string $file_name): string
90 return pathinfo($file_name, PATHINFO_EXTENSION);
103 return self::PATH_PRE;
111 return self::PATH_POST;
moveUploaded(string $which, array $file_info, ilLearningSequenceSettings $settings)
delete_image(string $which, ilLearningSequenceSettings $settings)
Storage of images in settings.
getStoragePathFor(string $which, int $obj_id, string $suffix)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withAbstractImage(string $path=null)
getSuffix(string $file_name)
getAbsolutePath()
Calculates the full path on the filesystem.
withExtroImage(string $path=null)
__construct(Container $dic, ilPlugin $plugin)
deleteFile(string $a_abs_name)