classname: htmlobject_template
Template
@package htmlobjects
@author Alexander Kuballa [akuballa@users.sourceforge.net]
@copyright Copyright (c) 2008 - 2012, Alexander Kuballa
@license BSD License (see LICENSE.TXT)
@version 1.1
filename: htmlobject.template.class.php
Attributes
Attributes
Methods
topfunction: __construct
params:
topparams:
$template
Constructor @access public @param string $template path to template file
function: add
params:
topparams:
$content $key = null
Add string, object or array to template @access public @param string | object | float | integer | array $content @param string $key
function: get_elements
params:
topparams:
$name = null
Get one or all elements @access public @param string $name @return array | object | null
function: get_string
topGet Template as string @access public @return string
function: get_vars
topGet vars from template file @access public @return array | null
function: group_elements
params:
topparams:
$params
Group elements by params @access public @param array $params (substring=>replace)
function: __parse
topParse variables into file @access private @return string
function: __varname
params:
topparams:
$varname
Protect a replacement variable @access private @param string $varname @return string replaced variable
function: __get_file
topGet template file @access private @return mixed FALSE if error, string if ok
function: __halt
params:
params:
$msg
Error message to show @access private @param string $msg
- htmlobject
- htmlobject_a
- htmlobject_base
- htmlobject_box
- htmlobject_button
- htmlobject_div
- htmlobject_form
- htmlobject_formbuilder
- htmlobject_iframe
- htmlobject_img
- htmlobject_input
- htmlobject_option
- htmlobject_request
- htmlobject_response
- htmlobject_select
- htmlobject_table
- htmlobject_tablebuilder
- htmlobject_tabmenu
- htmlobject_td
- htmlobject_template
- htmlobject_textarea
- htmlobject_tr