68 Classifieds API

Features
class tree: 68Classifieds | index: 68Classifieds | all elements

 Class Template

Description

Template class handles the template display and extends Smarty.

Located in /includes/classes/kernel/Template.php (line 26)

Smarty
   |
   --Template
Variable Summary
 int $cache_id
 array $module
Method Summary
 Template Template ([string $module = ''])
 void bulkAssign (array $array)
 void display (string $resource_name, [mixed $cache_id = null], [mixed $compile_id = null])
 void displayTemplate ()
 void set_module ( $module)
Methods
Constructor Template (line 46)

The Template constructor.

This method also tries to load any module templates and module plugins.

Template Template ([string $module = ''])
  • string $module: If a module is called.
bulkAssign (line 148)

Loops through an array and assigns each pair to smarty.

void bulkAssign (array $array)
  • array $array
display (line 187)

Display Function extends display to add in helpers at the last minute

Added by John Snyder

void display (string $resource_name, [mixed $cache_id = null], [mixed $compile_id = null])
  • string $resource_name
  • mixed $cache_id
  • mixed $compile_id

Redefinition of:
Smarty::display()
executes & displays the template results
displayTemplate (line 170)

This function handles displaying the layout template file.

  • return: Display layout.
void displayTemplate ()
set_module (line 133)
void set_module ( $module)
  • $module

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_filter_name()
 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()