1 <?php declare(strict_types=1);
33 switch ($this->max_nesting) {
34 case self::MAX_NESTING_4096:
37 case self::MAX_NESTING_65536:
40 case self::MAX_NESTING_256:
49 $splitted = str_split(str_replace(
"-",
"", $i->
serialize()), $this->splitter);
51 $first_part = array_slice($splitted, 0, $this->limited_layers + 1);
52 $second_part = array_slice($splitted, $this->limited_layers + 1);
54 return implode(
"/", $first_part) . implode(
"", $second_part);
59 $str = str_replace(
"/",
"", $path);
61 $p1 = substr($str, 0, 8);
62 $p2 = substr($str, 8, 4);
63 $p3 = substr($str, 12, 4);
64 $p4 = substr($str, 16, 4);
65 $p5 = substr($str, 20, 12);
__construct()
MaxNestingPathGenerator constructor.
Interface Identification.
getPathFor(ResourceIdentification $i)
getIdentificationFor(string $path)
Class MaxNestingPathGenerator.