Lines Matching defs:wikiPath
236 $wikiPath = $ref;
240 $wikiPath = substr($ref, 0, $questionMarkPosition);
246 $wikiPath = substr($ref, 0, $hashTagPosition);
255 $wikiPath = $this->normalizePath($wikiPath);
295 $this->path = WikiPath::createMediaPathFromId($wikiPath, $rev);
310 * a namespace (ie wikiPath = `ns:`)
313 $markupPath = MarkupPath::createMarkupFromStringPath($wikiPath);
314 if (!FileSystems::exists($markupPath) && $wikiPath !== "") {
315 // We test for an empty wikiPath string
319 $idPath = MarkupPath::createMarkupFromId($wikiPath);
384 * @param string $wikiPath - a path entered by a user
387 public function normalizePath(string $wikiPath): string
389 if ($wikiPath === "") {
390 return $wikiPath;
393 $wikiPath = str_replace(WikiPath::NAMESPACE_SEPARATOR_SLASH, WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT, $wikiPath);
396 if ($wikiPath[strlen($wikiPath) - 1] === WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT) {
400 if ($wikiPath[0] === WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT) {
404 if ($wikiPath[0] === WikiPath::CURRENT_PATH_CHARACTER) {
406 if (isset($wikiPath[1])) {
407 if ($wikiPath[1] === WikiPath::CURRENT_PATH_CHARACTER) {
415 $cleanPath = cleanID($wikiPath);