Servant

Initialization

initialize($path, $parent, $id = null)

Node traversal

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

Node getters

browserCache()
$page->browserCache()
0
depth($includeRoot = false)
$page->depth()
2
description()
$page->description()
'Tutorials, guides and full documentation for the Servant web framework'
externalScripts()
$page->externalScripts("url")
array (
  0 => 'http://servantframework.com/js/',
  1 => 'http://code.jquery.com/jquery-2.1.0.min.js',
  2 => 'http://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.js',
)
externalStylesheets()
$page->externalStylesheets("url")
array (
)
icon($format = false)
$page->icon()
'assets/icon.png'
id()
$page->id()
'page'
index()
$page->index()
4
language()
$page->language()
'en'
name()
$page->name()
'Page'
pointer($includeRoot = false)
$page->pointer()
array (
  0 => 'recipes',
  1 => 'core',
  2 => 'page',
)
serverCache()
$page->serverCache()
0
siteName()
$page->siteName()
'Servant'
splashImage($format = false)
$page->splashImage()
'assets/splash.jpg'
stringPointer($includeRoot = false)
$page->stringPointer()
'recipes/core/page'
template()
$page->template()
'servant'

Page traversal

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

Page getters

endpoint($format = false)
$page->endpoint()
'site/recipes/core/page/'
output()
path($format = false)
$page->path()
'pages/recipes/core/page.php'
scripts($format = false)
$page->scripts()
array (
)
stylesheets($format = false)
$page->stylesheets()
array (
  0 => 'pages/recipes/recipes.less',
)
type()
$page->type()
'php'