AdminController Class
For processing videos pages. 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
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
()
The process method contains nothing navigation is created when renderNavigation is called.
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