Lines Matching refs:absolute_path

31      * @param string $absolute_path The absolute used for the filesystem search.
37 public static function deriveFilesystemFrom(string $absolute_path) : Filesystem argument
45 case self::checkPossiblePath($temp, $absolute_path):
47 case self::checkPossiblePath($web, $absolute_path):
49 case self::checkPossiblePath($webRelativeWithLeadingDot, $absolute_path):
51 case self::checkPossiblePath($webRelativeWithoutLeadingDot, $absolute_path):
53 case self::checkPossiblePath($storage, $absolute_path):
55 case self::checkPossiblePath($customizing, $absolute_path):
57 case self::checkPossiblePath($customizingRelativeWithLeadingDot, $absolute_path):
59 case self::checkPossiblePath($libs, $absolute_path):
61 case self::checkPossiblePath($libsRelativeWithLeadingDot, $absolute_path):
64 …ith the web, storage, temp, customizing or libs storage location. Path given: '{$absolute_path}'");
73 * @param string $absolute_path The path which should be trimmed.
81 public static function createRelativePath(string $absolute_path) : string argument
90 case self::checkPossiblePath($webRelativeWithoutLeadingDot, $absolute_path):
91 return self::resolveRelativePath($webRelativeWithoutLeadingDot, $absolute_path);
93 case self::checkPossiblePath($webRelativeWithLeadingDot, $absolute_path):
94 return self::resolveRelativePath($webRelativeWithLeadingDot, $absolute_path);
96 case self::checkPossiblePath($web, $absolute_path):
97 return self::resolveRelativePath($web, $absolute_path);
99 case self::checkPossiblePath($temp, $absolute_path):
100 return self::resolveRelativePath($temp, $absolute_path);
102 case self::checkPossiblePath($storage, $absolute_path):
103 return self::resolveRelativePath($storage, $absolute_path);
105 case self::checkPossiblePath($customizing, $absolute_path):
106 return self::resolveRelativePath($customizing, $absolute_path);
108 case self::checkPossiblePath($customizingRelativeWithLeadingDot, $absolute_path):
109 … return self::resolveRelativePath($customizingRelativeWithLeadingDot, $absolute_path);
111 case self::checkPossiblePath($libs, $absolute_path):
113 case self::checkPossiblePath($libsRelativeWithLeadingDot, $absolute_path):
114 return self::resolveRelativePath($libsRelativeWithLeadingDot, $absolute_path);
116 …ith the web, storage, temp, customizing or libs storage location. Path given: '{$absolute_path}'");
121 … private static function resolveRelativePath(string $possible_path, string $absolute_path) : string argument
126 case $possible_path === $absolute_path:
127 case $real_possible_path === $absolute_path:
129 case strpos($absolute_path, $possible_path) === 0:
130 …return substr($absolute_path, strlen($possible_path) + 1); //also remo…
131 case strpos($absolute_path, $real_possible_path) === 0:
132 …return substr($absolute_path, strlen($real_possible_path) + 1); //also…
134 …ith the web, storage, temp, customizing or libs storage location. Path given: '{$absolute_path}'");
141 * @param string $absolute_path
145 private static function checkPossiblePath(string $possible_path, string $absolute_path) : bool argument
150 case $possible_path === $absolute_path:
152 case $real_possible_path === $absolute_path:
154 case is_string($possible_path) && strpos($absolute_path, $possible_path) === 0:
156 … case is_string($real_possible_path) && strpos($absolute_path, $real_possible_path) === 0: