[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
Resolving relative IDs to absolute ones
File Size: | 106 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct($contextID) X-Ref |
param: string $contextID the current pageID that's the context to resolve relative IDs to |
resolveId($id, $rev = '', $isDateAt = false) X-Ref |
Resolves a given ID to be absolute return: string param: string $id The ID to resolve param: string|int|false $rev The revision time to use when resolving param: bool $isDateAt Is the given revision only a datetime hint not an exact revision? |
resolvePrefix($id) X-Ref |
Handle IDs starting with . or ~ and prepend the proper prefix return: string param: string $id |
resolveRelatives($id) X-Ref |
Handle . and .. within IDs return: string param: string $id |