PageModel
class PageModel (View source)
The Page model.
Methods
static string
contextUrlByPath(string $path)
Return updated view URL based on $path.
static string
extractPrefixFromPath(string $path)
Extract the deepest directory's prefix from a given path.
static string
extractSlugFromPath(string $path)
Extract the slug without the prefix from a given path.
static string
static string
moveDirAndUpdateLinks(Page $Page, string $destPath, string $prefix, string $slug)
Move a page directory and update all related links.
static string
static string
updateSlug(string $currentTitle, string $newTitle, string $slug)
Update slug in case it is not a custom one and just represents a sanitized version of the title.
static bool
Details
at line 65
static string
add(Page $Parent, string $title, string $themeTemplate, bool $isPrivate)
Add page.
at line 108
static string
contextUrlByPath(string $path)
Return updated view URL based on $path.
at line 155
static string
extractPrefixFromPath(string $path)
Extract the deepest directory's prefix from a given path.
at line 165
static string
extractSlugFromPath(string $path)
Extract the slug without the prefix from a given path.
at line 178
static string
getPageFilePath(Page $Page)
Return the full file system path of a page's data file.
at line 191
static string
moveDirAndUpdateLinks(Page $Page, string $destPath, string $prefix, string $slug)
Move a page directory and update all related links.
at line 215
static string
save(Page $Page, string $url, array $data, string $themeTemplate, string $prefix, string $slug)
Save page data.
at line 313
static string
updateSlug(string $currentTitle, string $newTitle, string $slug)
Update slug in case it is not a custom one and just represents a sanitized version of the title.