Class Theme

Theme

public class Theme

Theme The current templating system is broken into two container classes. This will most likely change in some respect so that the containers can be merged. The theme class contains config and meta information for the overall page generation and owns the template object itself. The theme is generated by variables passed by Interface initialization.


Field Summary
private  unknown $id
          The theme id generated during interface initialization.
private  unknown $tconfig
          The theme config defines several options in the theme.
private  unknown $template
          The template object should only be accessed through its owning Theme.
private  unknown $tmeta
          The theme meta data contains information about the page composition, author, etc.
 
Constructor Summary
Theme(var $theme)
          Theme Constructor Creates the theme object and performs the initialization to load the config and meta data loading.
 
Method Summary
 unknown displayTheme()
          Display Theme Displays the theme by causing the template to self-parse its contents.
 unknown getThemeConfig()
          Get Theme Configuration Loads the theme configuration from the database.
 unknown getThemeMeta()
          Get Theme MetaData Theme meta data is inserted into META HTML headers in the portal interface code.
 

Field Detail

$id

private unknown $id
The theme id generated during interface initialization. This id is first the interface override theme, then a user selected theme and lastly a system wide default theme.
See Also:
Initialize()

$template

private unknown $template
The template object should only be accessed through its owning Theme.

$tconfig

private unknown $tconfig
The theme config defines several options in the theme.

$tmeta

private unknown $tmeta
The theme meta data contains information about the page composition, author, etc.
Constructor Detail

Theme

public Theme(var $theme)
Theme Constructor Creates the theme object and performs the initialization to load the config and meta data loading. A new template object is also generated in this step.
Parameters:
integer - $theme The id number for the theme to create.
Method Detail

getThemeConfig

public unknown getThemeConfig()
Get Theme Configuration Loads the theme configuration from the database. This currently relies on a theme config to be setup during a theme addition or copy. We need to create interfaces for changing the theme config.
Returns:
VOID

getThemeMeta

public unknown getThemeMeta()
Get Theme MetaData Theme meta data is inserted into META HTML headers in the portal interface code. This helps to solidify the portal in search engine queries. This will eventually be expanded to allow meta data based on block level meta-data.
Returns:
VOID

displayTheme

public unknown displayTheme()
Display Theme Displays the theme by causing the template to self-parse its contents. This is done block by block, element by element and then organized into the theme by zones.
Returns:
String Output of parsed HTML from the template parsing.