Class TemplateView

Description

TemplateView class

Located in /inc/view/TemplateView.php (line 21)


        
                    
Method Summary
 TemplateView (String $activeTemplate) void
 addCssFile (String $cssFilename) void
 addCssJs () String
 addJsFile (String $jsFilename) void
 assign (String $key, String $value) void
 getActiveTemplate () activeTemplate-path
 render () void
 renderGzipped () void
 returnTemplate () Content
 setTemplateFile (String $templateFile) void
Methods
Constructor TemplateView (line 57)

Constructor of TemplateView

  • access: public
void TemplateView (String $activeTemplate)
  • String $activeTemplate: Path to active template directory
addCssFile (line 241)

Method to add new CSS files to array

  • access: public
void addCssFile (String $cssFilename)
  • String $cssFilename
addCssJs (line 89)

Method to add correct JS and CSS files from template

  • return: with html content of JS and CSS files
  • access: public
String addCssJs ()
addJsFile (line 250)

Method to add new JS files to array

  • access: public
void addJsFile (String $jsFilename)
  • String $jsFilename
assign (line 76)

Method to assign all template values to our template

  • access: public
void assign (String $key, String $value)
  • String $key: Array-key
  • String $value: Array-value for key
getActiveTemplate (line 230)

Method to return activeTemplate-path

  • access: public
activeTemplate-path getActiveTemplate ()
render (line 130)

Function which renders the template

  • access: public
void render ()
renderGzipped (line 151)

Method to render the template with gzip compression

  • access: public
void renderGzipped ()
returnTemplate (line 211)

Method to return template content as string

  • return: of templatefile
  • access: public
Content returnTemplate ()
setTemplateFile (line 117)

Method to set different template filename

  • access: public
void setTemplateFile (String $templateFile)
  • String $templateFile