ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
FileSystemStorageHandler.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\ResourceStorage\StorageHandler\FileSystemBased
;
22
23
use
ILIAS\Filesystem\Filesystem
;
24
use
ILIAS\FileUpload\Location
;
25
use
ILIAS\ResourceStorage\StorageHandler\PathGenerator\UUIDBasedPathGenerator
;
26
use
ILIAS\ResourceStorage\StorageHandler\StorageHandlerFactory
;
27
33
class
FileSystemStorageHandler
extends
AbstractFileSystemStorageHandler
34
{
35
public
function
__construct
(
36
Filesystem
$filesystem,
37
int
$location
=
Location::STORAGE
,
38
bool
$determine_linking_possible =
false
39
) {
40
parent::__construct
($filesystem,
$location
, $determine_linking_possible);
41
$this->path_generator =
new
UUIDBasedPathGenerator
();
42
}
43
47
public
function
getID
(): string
48
{
49
return
'fsv1'
;
50
}
51
52
public
function
getStorageLocationBasePath
(): string
53
{
54
return
StorageHandlerFactory::BASE_DIRECTORY
;
55
}
56
57
public
function
isPrimary
(): bool
58
{
59
return
false
;
60
}
61
}
ILIAS\FileUpload\Location\STORAGE
const STORAGE
The filesystem outside of the ilias web root.
Definition:
Location.php:40
Filesystem
ILIAS\ResourceStorage\StorageHandler\FileSystemBased\FileSystemStorageHandler\isPrimary
isPrimary()
Definition:
FileSystemStorageHandler.php:57
ILIAS\ResourceStorage\StorageHandler\FileSystemBased\FileSystemStorageHandler\__construct
__construct(Filesystem $filesystem, int $location=Location::STORAGE, bool $determine_linking_possible=false)
Definition:
FileSystemStorageHandler.php:35
Location
ILIAS\ResourceStorage\StorageHandler\StorageHandlerFactory\BASE_DIRECTORY
const BASE_DIRECTORY
Definition:
StorageHandlerFactory.php:34
ILIAS\MetaData\Repository\Validation\Data\__construct
__construct(VocabulariesInterface $vocabularies)
Definition:
VocabularyBridge.php:31
ILIAS\ResourceStorage\StorageHandler\FileSystemBased
Definition:
AbstractFileSystemStorageHandler.php:21
ILIAS\ResourceStorage\StorageHandler\FileSystemBased\AbstractFileSystemStorageHandler
Class AbstractFileSystemStorageHandler.
Definition:
AbstractFileSystemStorageHandler.php:45
ILIAS\ResourceStorage\StorageHandler\PathGenerator\UUIDBasedPathGenerator
Class UUIDBasedPathGenerator.
Definition:
UUIDBasedPathGenerator.php:31
UUIDBasedPathGenerator
ILIAS\ResourceStorage\StorageHandler\FileSystemBased\FileSystemStorageHandler\getID
getID()
Definition:
FileSystemStorageHandler.php:47
ILIAS\ResourceStorage\StorageHandler\FileSystemBased\FileSystemStorageHandler
Class FileSystemStorageHandler.
Definition:
FileSystemStorageHandler.php:33
ILIAS\ResourceStorage\StorageHandler\FileSystemBased\FileSystemStorageHandler\getStorageLocationBasePath
getStorageLocationBasePath()
This is the place in the filesystem where the containers (nested) get created.
Definition:
FileSystemStorageHandler.php:52
ILIAS\ResourceStorage\StorageHandler\FileSystemBased\AbstractFileSystemStorageHandler\$location
int $location
Definition:
AbstractFileSystemStorageHandler.php:53
StorageHandlerFactory
Filesystem
src
ResourceStorage
StorageHandler
FileSystemBased
FileSystemStorageHandler.php
Generated on Wed Sep 10 2025 14:12:07 for ILIAS by
1.8.13 (using
Doxyfile
)