3 declare(strict_types=1);
17 parent::__construct(self::STORAGE_WEB,
false, 0);
33 move_uploaded_file($file_info[
'tmp_name'],
$target);
35 if ($which === self::IMG_ABSTRACT) {
38 if ($which === self::IMG_EXTRO) {
47 if ($which === self::IMG_ABSTRACT) {
51 if ($which === self::IMG_EXTRO) {
70 public function getSuffix(
string $file_name) : string
72 return pathinfo($file_name, PATHINFO_EXTENSION);
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)
Settings for an LSO (like abstract, extro)
withAbstractImage(string $path=null)
create()
Create directory.
getSuffix(string $file_name)
getAbsolutePath()
Get absolute path of storage directory.
withExtroImage(string $path=null)
deleteFile($a_abs_name)
Delete file.