TFCMS
Public Member Functions | Static Public Member Functions | Static Protected Attributes

TFCMS Class Reference

The TrueFusion CMS core class. More...

Public Member Functions

Static Public Member Functions

Static Protected Attributes


Detailed Description

The TrueFusion CMS core class.


Constructor & Destructor Documentation

__construct ( )

TFCMS constructor.

Parameters do not require being passed in, but this method takes the same parameters as TFCMSView's constructor.

See also:
TFCMSView

Member Function Documentation

addGlobalJavaScripts ( script_paths)

Add JavaScript scripts for every page.

Parameters:
string$script_pathsA semi-colon delimited list of JavaScript file paths.
addGlobalStyleSheets ( stylesheet_paths)

Add stylesheets for every page.

Parameters:
string$stylesheet_pathsA semi-colon delimited list of stylesheet file paths.
addMetaData ( name,
content 
)

Add meta data.

Parameters:
string$nameValue for the HTML attribute, name.
string$contentValue for the HTML attribute, content.
Note:

Currently only supports name and content attributes. Content with the same name will get overwritten.

renderHtml ( )

Finishing piece to the puzzle.

Warning:
Call this method when you have finished setting everything up. Calling this method before any other method may prove to break things.
setGlobalFileTypes ( file_types)

Set file types for directories to consider.

Parameters:
string$file_typesA semi-colon delimited string of file extensions.
setHomePage ( home_page)

Set the home page to $home_page

Parameters:
string$home_pagePath to file.

The documentation for this class was generated from the following file: