Lines Matching defs:id

17  * * for output (ie creating the id for the url)
90 * @var string the path id passed to function (cleaned)
92 private $id;
212 * ACL check does not care about the type of id
237 $this->id = $this->toDokuWikiIdDriveContextual($pathPart);
241 $this->id = $this->toDokuWikiIdDriveContextual($this->absolutePath);
363 * the id structure.
364 * @param $id
368 static function createFromUnknownRoot($id): WikiPath
370 return new WikiPath($id, WikiPath::UNKNOWN_DRIVE);
385 $queryId = 'id';
387 // Doku form (ie doku.php?id=)
388 $id = $parsedQueryArray[$queryId];
390 // Slash form ie (/my/id)
392 $id = substr(str_replace("/", ":", $urlPath), 1);
394 return self::createMarkupPathFromPath(":$id");
418 * @param $id
420 * Return an path from a id
423 static function IdToAbsolutePath($id)
425 if (is_null($id)) {
426 LogUtility::msg("The id passed should not be null");
428 return WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT . $id;
436 $id = self::removeRootSepIfPresent($path);
442 StringUtility::rtrim($id, '.' . self::MARKUP_DEFAULT_TXT_EXTENSION);
444 return $id;
449 static function createMediaPathFromId($id, $rev = null): WikiPath
451 WikiPath::addRootSeparatorIfNotPresent($id);
452 return self::createMediaPathFromPath($id, $rev);
508 static function createMarkupPathFromId($id, $rev = null): WikiPath
510 if (strpos($id, WikiFileSystem::SCHEME . "://") !== false) {
511 return WikiPath::createFromUri($id);
513 WikiPath::addRootSeparatorIfNotPresent($id);
514 return self::createMarkupPathFromPath($id);
518 * If the id does not have a root separator,
519 * it's added (ie to transform an id to a path)
712 * @param string $path - path or id
731 * Normalize a valid id
734 * @param string $id
738 * because there is no relativity or any reserved character in a id
740 * as an {@link WikiPath::getWikiId() id} is a validated absolute path without root character
743 static function normalizeWikiPath(string $id)
745 return str_replace(WikiPath::NAMESPACE_SEPARATOR_SLASH, WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT, $id);
761 $id = $path;
762 if ($id[0] === WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT) {
763 return substr($id, 1);
765 return $id;
815 * @return bool true if this id represents a page
839 * with id of the form :path:*
854 * @return string - the wiki id is the absolute path
861 * The id is a validated absolute path without any root character.
869 return $this->id;
1014 * @return string - the wiki id with a root separator
1177 $filePathString = mediaFN($this->id, $rev);
1179 $filePathString = mediaFN($this->id);
1193 $idFileSystem = str_replace(':', '/', $this->id);