Servant

Sitemap

select root()
$servant->sitemap()->root()

Node traversal

isRoot()
$root->isRoot()
true
isPage()
$root->isPage()
false
isCategory()
$root->isCategory()
true
next()
parent()
parents($includeRoot = false)
previous()
root()
sibling()
siblings()
tree($includeRoot = false)

Node getters

browserCache()
$root->browserCache()
720
depth($includeRoot = false)
$root->depth()
-1
description()
$root->description()
'Effortless publishing for the web'
externalScripts()
$root->externalScripts("url")
array (
  0 => 'http://servantframework.com/js/',
  1 => 'http://code.jquery.com/jquery-2.1.0.min.js',
)
externalStylesheets()
$root->externalStylesheets("url")
array (
)
icon($format = false)
$root->icon()
'assets/icon.png'
id()
$root->id()
'root'
index()
$root->index()
0
language()
$root->language()
'en'
name()
$root->name()
'Root'
pointer($includeRoot = false)
$root->pointer()
array (
)
serverCache()
$root->serverCache()
360
siteName()
$root->siteName()
'Servant'
splashImage($format = false)
$root->splashImage()
'assets/splash.jpg'
stringPointer($includeRoot = false)
$root->stringPointer()
''
template()
$root->template()
'servant'

Page traversal

category()
children()
page()
isCategory()
$root->isCategory()
true
isHome()
$root->isHome()
false
isPage()
$root->isPage()
false

Page getters

endpoint($format = false)
$root->endpoint()
'site/home/'