Class Template

Description

Smarty template object extension

Located in /classes/Template.class.php (line 27)

Smarty
   |
   --Template
Variable Summary
Method Summary
Template Template ([mixed $aConf = array()])
void addMes ([string $sUrl = ''])
void assign (mixed $mVar, [mixed $mVal = null], array|string $tpl_var, mixed $value)
void assignSrc (mixed $mVar, [mixed $mVal = null], array|string $tpl_var, mixed $value)
string fetch (string $resource_name, [string $cache_id = null], [string $compile_id = null], [bool $display = false])
void setTemplateFile (string $sFile)
void view (mixed $sTpl, [mixed $sDir = ''], [mixed $user_theme_id = ''])
mixed _escape (mixed $mVal)
Variables
Methods
Constructor Template (line 36)

Constructor

Template Template ([mixed $aConf = array()])
addMes (line 200)

Add message

void addMes ([string $sUrl = ''])
  • string $sUrl
assign (line 210)

Assign value with html escaping

void assign (mixed $mVar, [mixed $mVal = null], array|string $tpl_var, mixed $value)
  • array|string $tpl_var: the template variable name(s)
  • mixed $value: the value to assign

Redefinition of:
Smarty::assign()
assigns values to template variables
assignSrc (line 228)

Assign value without escaping

void assignSrc (mixed $mVar, [mixed $mVal = null], array|string $tpl_var, mixed $value)
  • array|string $tpl_var: the template variable name(s)
  • mixed $value: the value to assign
fetch (line 84)

Fetch template. Performs addMess() and call parent fetch() method

string fetch (string $resource_name, [string $cache_id = null], [string $compile_id = null], [bool $display = false])
  • string $resource_name
  • string $cache_id
  • string $compile_id
  • bool $display

Redefinition of:
Smarty::fetch()
executes & returns or displays the template results
setTemplateFile (line 70)

Set template file name (overwrite default "_template.html")

void setTemplateFile (string $sFile)
  • string $sFile: template file name
view (line 159)

Display

void view (mixed $sTpl, [mixed $sDir = ''], [mixed $user_theme_id = ''])
_escape (line 240)

Performs html escaping (for complex type too)

  • todo: do something with class!!!
mixed _escape (mixed $mVal)
  • mixed $mVal

Inherited Methods

Inherited From Smarty

Smarty::Smarty()
Smarty::append()
Smarty::append_by_ref()
Smarty::assign()
Smarty::assign_by_ref()
Smarty::clear_all_assign()
Smarty::clear_all_cache()
Smarty::clear_assign()
Smarty::clear_cache()
Smarty::clear_compiled_tpl()
Smarty::clear_config()
Smarty::config_load()
Smarty::display()
Smarty::fetch()
Smarty::get_config_vars()
Smarty::get_registered_object()
Smarty::get_template_vars()
Smarty::is_cached()
Smarty::load_filter()
Smarty::register_block()
Smarty::register_compiler_function()
Smarty::register_function()
Smarty::register_modifier()
Smarty::register_object()
Smarty::register_outputfilter()
Smarty::register_postfilter()
Smarty::register_prefilter()
Smarty::register_resource()
Smarty::template_exists()
Smarty::trigger_error()
Smarty::unregister_block()
Smarty::unregister_compiler_function()
Smarty::unregister_function()
Smarty::unregister_modifier()
Smarty::unregister_object()
Smarty::unregister_outputfilter()
Smarty::unregister_postfilter()
Smarty::unregister_prefilter()
Smarty::unregister_resource()
Smarty::_compile_resource()
Smarty::_compile_source()
Smarty::_dequote()
Smarty::_eval()
Smarty::_fetch_resource_info()
Smarty::_get_auto_filename()
Smarty::_get_auto_id()
Smarty::_get_compile_path()
Smarty::_get_plugin_filepath()
Smarty::_include()
Smarty::_is_compiled()
Smarty::_parse_resource_name()
Smarty::_process_compiled_include_callback()
Smarty::_read_file()
Smarty::_run_mod_handler()
Smarty::_smarty_cache_attrs()
Smarty::_smarty_include()
Smarty::_trigger_fatal_error()
Smarty::_unlink()

Documentation generated on Fri, 28 Dec 2007 21:39:18 +0100 by phpDocumentor 1.3.0RC3