[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/File/ -> PageResolver.php (summary)

(no description)

File Size: 98 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PageResolver:: (3 methods):
  resolveId()
  resolveStartPage()
  resolveAutoPlural()


Class: PageResolver  - X-Ref

Creates an absolute page ID from a relative one

resolveId($id, $rev = '', $isDateAt = false)   X-Ref
Resolves a given ID to be absolute

This handles all kinds of relative shortcuts, startpages and autoplurals

resolveStartPage($id, $rev, $isDateAt)   X-Ref
IDs ending in :

param: string $id
param: string|int|false $rev
param: bool $isDateAt
return: string

resolveAutoPlural($id, $rev, $isDateAt)   X-Ref
Try alternative plural/singular form

param: string $id
param: int $rev
param: bool $isDateAt
return: string