ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
UUIDBasedPathGenerator.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
3
namespace
ILIAS\ResourceStorage\StorageHandler\PathGenerator
;
4
5
use
ILIAS\ResourceStorage\Identification\ResourceIdentification
;
6
13
class
UUIDBasedPathGenerator
implements
PathGenerator
14
{
15
public
function
getPathFor
(
ResourceIdentification
$i
) : string
16
{
17
return
str_replace(
"-"
,
"/"
, $i->
serialize
());
18
}
19
20
public
function
getIdentificationFor
(
string
$path) :
ResourceIdentification
21
{
22
return
new
ResourceIdentification
(str_replace(
"/"
,
"-"
, $path));
23
}
24
25
}
ILIAS\ResourceStorage\Identification\ResourceIdentification\serialize
serialize()
Definition:
ResourceIdentification.php:37
ResourceIdentification
ILIAS\ResourceStorage\Identification\ResourceIdentification
Interface Identification.
Definition:
ResourceIdentification.php:14
ILIAS\ResourceStorage\StorageHandler\PathGenerator\UUIDBasedPathGenerator
Class UUIDBasedPathGenerator.
Definition:
UUIDBasedPathGenerator.php:13
ILIAS\ResourceStorage\StorageHandler\PathGenerator\UUIDBasedPathGenerator\getIdentificationFor
getIdentificationFor(string $path)
Definition:
UUIDBasedPathGenerator.php:20
ILIAS\ResourceStorage\StorageHandler\PathGenerator\UUIDBasedPathGenerator\getPathFor
getPathFor(ResourceIdentification $i)
Definition:
UUIDBasedPathGenerator.php:15
ILIAS\ResourceStorage\StorageHandler\PathGenerator
Definition:
MaxNestingPathGenerator.php:3
ILIAS\ResourceStorage\StorageHandler\PathGenerator\PathGenerator
Class PathGenerator.
Definition:
PathGenerator.php:11
$i
$i
Definition:
metadata.php:24
src
ResourceStorage
StorageHandler
PathGenerator
UUIDBasedPathGenerator.php
Generated on Mon Sep 1 2025 21:01:46 for ILIAS by
1.8.13 (using
Doxyfile
)