## Class Template

Description

Handles the complete Templatesystem

- version: $Id: class Template.inc,v 1.0 2002/09/25
- access: public
- author: Michael Oertel <michael@ortelius.de>
- author: Sascha Ragtschaa <sascha@ragtschaa.com>

Located in Program_Root/include/class.Template.inc (line 41)

Variable Summary
mixed $cache_it
mixed $include_path
mixed $max_age
mixed $old_theme
mixed $poc_web_root
mixed $template
mixed $tmpl_sys_path
mixed $tmpl_web_path
mixed $web_root
Method Summary
void Template ([mixed $theme = null])
string filter_placeholder (string $string)
string get_cached_content (string $max_age)
void get_include_path ()
void get_language_template ()
string get_path (mixed $path)
string get_poc_web_root ()
void get_template ([mixed $template = null], [mixed $path_only = false])
string get_theme ()
string; get_theme_option_list ()
void get_theme_path ()
string get_tmpl_sys_path ()
string get_tmpl_web_path ()
void set_theme (string $theme)
void _build_pathes ([mixed $old_theme = null])
void _check_pathes (mixed $file)
Variables
mixed $cache_it = false (line 59)
mixed $include_path (line 53)
mixed $max_age (line 60)
mixed $old_theme = null (line 51)
mixed $poc_web_root = null (line 55)
mixed $template (line 58)
mixed $tmpl_sys_path = null (line 57)
mixed $tmpl_web_path = null (line 56)
mixed $web_root = null (line 54)
Methods
Constructor Template (line 67)

Constructor

- access: public

void Template ([mixed $theme = null])
filter_placeholder (line 373)

Filters the given string and replaces some placeholders

- see: Template::get_path()

string filter_placeholder (string $string)

- string $string

get_cached_content (line 266)

Provides content from cache

string get_cached_content (string $max_age)

- string $max_age: maximum age for the cached content

get_include_path (line 143)
void get_include_path ()
get_language_template (line 232)

Searches for a template in right language, if such template not found the template in default language will be returned

- access: public

void get_language_template ()
get_path (line 302)

Provides the path to the current theme

string get_path (mixed $path)
get_poc_web_root (line 314)

Provides the web path to POC

string get_poc_web_root ()
get_template (line 198)

Provides the template with path and outputs html

- access: public

void get_template ([mixed $template = null], [mixed $path_only = false])
get_theme (line 256)

Provides the current choosen theme

string get_theme ()
get_theme_option_list (line 347)

Provides all installed themes as an option list

- return: html options

string; get_theme_option_list ()
get_theme_path (line 295)
void get_theme_path ()
get_tmpl_sys_path (line 324)

Provides the path to the current theme

string get_tmpl_sys_path ()
get_tmpl_web_path (line 291)

Provides the path to the current theme

string get_tmpl_web_path ()
set_theme (line 334)

Sets the current theme

void set_theme (string $theme)

- string $theme

_build_pathes (line 86)
void _build_pathes ([mixed $old_theme = null])
_check_pathes (line 81)
void _check_pathes (mixed $file)

Documention generated on Fri, 2 May 2003 10:50:48 +0200 by phpDocumentor 1.2.0rc2