ILIAS  release_7 Revision v7.30-3-g800a261c036
UUIDBasedPathGenerator.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
4 
6 
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 }
$i
Definition: metadata.php:24