ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
◀ ilDoc Overview
UUIDBasedPathGenerator.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\ResourceStorage\StorageHandler\PathGenerator
;
22
23
use
ILIAS\ResourceStorage\Identification\ResourceIdentification
;
24
31
class
UUIDBasedPathGenerator
implements
PathGenerator
32
{
33
public
function
getPathFor
(
ResourceIdentification
$i): string
34
{
35
return
str_replace(
"-"
,
"/"
, $i->
serialize
());
36
}
37
38
public
function
getIdentificationFor
(
string
$path
):
ResourceIdentification
39
{
40
return
new
ResourceIdentification
(str_replace(
"/"
,
"-"
, $path));
41
}
42
}
ILIAS\ResourceStorage\Identification\AbstractIdentification\serialize
serialize()
Definition:
AbstractIdentification.php:39
ResourceIdentification
$path
$path
Definition:
ltiservices.php:29
ILIAS\ResourceStorage\Identification\ResourceIdentification
Class ResourceIdentification.
Definition:
ResourceIdentification.php:30
ILIAS\ResourceStorage\StorageHandler\PathGenerator\UUIDBasedPathGenerator
Class UUIDBasedPathGenerator.
Definition:
UUIDBasedPathGenerator.php:31
ILIAS\ResourceStorage\StorageHandler\PathGenerator\UUIDBasedPathGenerator\getIdentificationFor
getIdentificationFor(string $path)
Definition:
UUIDBasedPathGenerator.php:38
ILIAS\ResourceStorage\StorageHandler\PathGenerator\UUIDBasedPathGenerator\getPathFor
getPathFor(ResourceIdentification $i)
Definition:
UUIDBasedPathGenerator.php:33
ILIAS\ResourceStorage\StorageHandler\PathGenerator
Definition:
MaxNestingPathGenerator.php:21
ILIAS\ResourceStorage\StorageHandler\PathGenerator\PathGenerator
Class PathGenerator.
Definition:
PathGenerator.php:29
components
ILIAS
ResourceStorage
src
StorageHandler
PathGenerator
UUIDBasedPathGenerator.php
Generated on Tue Sep 2 2025 23:03:44 for ILIAS by
1.8.13 (using
Doxyfile
)