AdminConfigController Class
Handle the rendering of the admin config page. Located in the namespace Canteen\Controllers.
Item Index
Methods
Properties
Methods
addData
-
name
-
value
Add a data substitution variable
addTemplate
-
template
-
[data=[]
Add the admin page by template, if there is no template use the default prerender() method
Parameters:
-
template
StringThe template name
-
[data=[]
Dictionary optionalThe optional substitution variables
addTitle
-
title
-
[separator=.]
Prepend to the page title
getData
()
Dictionary
Get the data variables
Returns:
Data variables for substitution
getPage
()
Page
Get the current page object, this is an override before returning the page, we render the navigation
Returns:
The updated page object
getPages
-
[selectUri=null]
Get the users as options
Parameters:
-
[selectUri=null]
String optionalSelect this optional page uri
parse
-
content
-
substitutions
Convenience method for parsing content
Parameters:
-
content
StringThe string to parse
-
substitutions
DictionaryThe dictionary of tags to replace
Returns:
The parsed string
pre-render
()
private
Pre-render the admin page with the navigation
process
()
Process the controller and build the view
Properties
data
Dictionary
protected
Any custom substitutions for the parser
parser
Parser
The parser is responsible for rendering templates
profiler
Profiler
The instance of the profiler for debugging performance