Servant

Lists

utilities()
$servant->available()->utilities()
array (
  0 => 'jade',
  1 => 'jshrink',
  2 => 'jsondb',
  3 => 'less',
  4 => 'markdown',
  5 => 'mthaml',
  6 => 'rst',
  7 => 'scss',
  8 => 'textile',
  9 => 'twig',
  10 => 'urlmanipulator',
  11 => 'validator',
  12 => 'wiky',
)
actions()
$servant->available()->actions()
array (
  0 => 'error',
  1 => 'js',
  2 => 'page',
  3 => 'pagescripts',
  4 => 'pagestyles',
  5 => 'site',
  6 => 'sitemap',
  7 => 'sitescripts',
  8 => 'sitestyles',
  9 => 'templatescripts',
  10 => 'templatestyles',
)
templates()
$servant->available()->templates()
array (
  0 => 'debug',
  1 => 'html',
  2 => 'list-submenu',
  3 => 'list-toplevelpages',
  4 => 'servant',
  5 => 'site',
)

Ask

utility()
$servant->available()->utility("validator")
true
action()
$servant->available()->action("page")
true
template()
$servant->available()->template("html")
true

Getters

first utility()
$servant->available()->utilities(0)
'jade'
first action()
$servant->available()->actions(0)
'error'
first template()
$servant->available()->templates(0)
'debug'