Class Dwoo_Smarty__Adapter

Description

a Smarty compatibility layer for Dwoo

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

This file is released under the LGPL "GNU Lesser General Public License" More information can be found here: http://www.gnu.org/copyleft/lesser.html

Located in /Dwoo/Smarty/Adapter.php (line 37)

Dwoo
   |
   --Dwoo_Smarty__Adapter
Direct descendents
Class Description
Dwoo_Smarty_Adapter a Smarty compatibility layer for Dwoo
Variable Summary
Method Summary
Dwoo_Smarty__Adapter __construct ()
void append_by_ref ( $var,  &$value, [ $merge = false])
void assign_by_ref ( $name,  &$val)
void clear_all_cache ([ $olderThan = 0])
void clear_assign ( $var)
void clear_cache ( $template, [ $cacheId = null], [ $compileId = null], [ $olderThan = 0])
void display ( $filename, [ $cacheId = null], [ $compileId = null])
void fetch ( $filename, [ $cacheId = null], [ $compileId = null], [ $display = false])
void get_registered_object ( $name)
void get_template_vars ([ $name = null])
void is_cached ( $tpl, [ $cacheId = null], [ $compileId = null])
void makeTemplate ( $file,  $cacheId,  $compileId)
void register_block ( $name,  $callback, [ $cacheable = true], [ $cache_attrs = null])
void register_function ( $name,  $callback, [ $cacheable = true], [ $cache_attrs = null])
void register_modifier ( $name,  $callback)
void register_object ( $object,  $object_impl, [ $allowed = array()], [ $smarty_args = false], [ $block_methods = array()])
void register_outputfilter ( $callback)
void register_postfilter ( $callback)
void register_prefilter ( $callback)
void template_exists ( $filename)
void trigger_error ( $error_msg, [ $error_type = E_USER_WARNING])
void unregister_block ( $name)
void unregister_function ( $name)
void unregister_modifier ( $name)
void unregister_object ( $object)
void unregister_outputfilter ( $callback)
void unregister_postfilter ( $callback)
void unregister_prefilter ( $callback)
void __call ( $m,  $a)
void __get ( $p)
void __set ( $p,  $v)
Variables
static mixed $tplCache = array() (line 157)
  • access: protected
mixed $cache_dir = 'cache' (line 139)
  • access: public
mixed $cache_lifetime = 3600 (line 148)
  • access: public
mixed $caching = 0 (line 147)
  • access: public
mixed $compat = array
(
'methods' => array
(
'register_resource', 'unregister_resource', 'load_filter', 'clear_compiled_tpl',
'clear_config', 'get_config_vars', 'config_load'
),'properties'=>array('cache_handler_func'=>null,'debugging'=>false,'error_reporting'=>null,'debugging_ctrl'=>'NONE','request_vars_order'=>'EGPCS','request_use_auto_globals'=>true,'use_sub_dirs'=>false,'autoload_filters'=>array(),'default_template_handler_func'=>'','debug_tpl'=>'','cache_modified_check'=>false,'default_modifiers'=>array(),'default_resource_type'=>'file','config_overwrite'=>true,'config_booleanize'=>true,'config_read_hidden'=>false,'config_fix_newlines'=>true,'config_class'=>'Config_File',),)
(line 86)
  • access: protected
mixed $compiler (line 158)
  • access: protected
mixed $compiler_class = null (line 151)
  • access: public
mixed $compiler_file = null (line 150)
  • access: public
mixed $compile_check = true (line 145)
  • access: public
mixed $compile_dir = 'templates_c' (line 137)
  • access: public
mixed $compile_id = null (line 149)
  • access: public
mixed $config_dir = 'configs' (line 138)
  • access: public
mixed $dataProvider (line 155)
  • access: protected
mixed $force_compile = false (line 146)
  • access: public
mixed $left_delimiter = '{' (line 143)
  • access: public
mixed $php_handling = SMARTY_PHP_PASSTHRU (line 120)
  • access: public
mixed $plugins_dir = array() (line 140)
  • access: public
mixed $right_delimiter = '}' (line 144)
  • access: public
mixed $secure_dir = array() (line 119)
  • access: public
mixed $security = false (line 117)
  • access: public
mixed $security_settings = array
(
'PHP_HANDLING' => false,
'IF_FUNCS' => array
(
'list', 'empty', 'count', 'sizeof',
'in_array', 'is_array',
),'INCLUDE_ANY'=>false,'PHP_TAGS'=>false,'MODIFIER_FUNCS'=>array(),'ALLOW_CONSTANTS'=>false)
(line 121)
  • access: public
mixed $show_compat_errors = false (line 154)
  • access: public
mixed $template_dir = 'templates' (line 136)
  • access: public
mixed $trusted_dir = array() (line 118)
  • access: public
mixed $_filters = array('pre'=>array(),'post'=>array(),'output'=>array()) (line 156)
  • access: protected

Inherited Variables

Inherited from Dwoo

Dwoo::$buffer
Dwoo::$cacheDir
Dwoo::$cacheTime
Dwoo::$charset
Dwoo::$compileDir
Dwoo::$curBlock
Dwoo::$data
Dwoo::$filters
Dwoo::$globals
Dwoo::$loader
Dwoo::$pluginProxy
Dwoo::$plugins
Dwoo::$resources
Dwoo::$runtimePlugins
Dwoo::$scope
Dwoo::$scopeTree
Dwoo::$securityPolicy
Dwoo::$stack
Dwoo::$template
Methods
Constructor __construct (line 160)
  • access: public
Dwoo_Smarty__Adapter __construct ()

Redefinition of:
Dwoo::__construct()
constructor, sets the cache and compile dir to the default values if not provided
append_by_ref (line 377)
  • access: public
void append_by_ref ( $var,  &$value, [ $merge = false])
  • $var
  • &$value
  • $merge
assign_by_ref (line 382)
  • access: public
void assign_by_ref ( $name,  &$val)
  • $name
  • &$val
clear_all_assign (line 392)
  • access: public
void clear_all_assign ()
clear_all_cache (line 411)
  • access: public
void clear_all_cache ([ $olderThan = 0])
  • $olderThan
clear_assign (line 387)
  • access: public
void clear_assign ( $var)
  • $var
clear_cache (line 416)
  • access: public
void clear_cache ( $template, [ $cacheId = null], [ $compileId = null], [ $olderThan = 0])
  • $template
  • $cacheId
  • $compileId
  • $olderThan
display (line 169)
  • access: public
void display ( $filename, [ $cacheId = null], [ $compileId = null])
  • $filename
  • $cacheId
  • $compileId
fetch (line 174)
  • access: public
void fetch ( $filename, [ $cacheId = null], [ $compileId = null], [ $display = false])
  • $filename
  • $cacheId
  • $compileId
  • $display
get_registered_object (line 358)
void get_registered_object ( $name)
  • $name
get_template_vars (line 397)
  • access: public
void get_template_vars ([ $name = null])
  • $name
initGlobals (line 426)
  • access: protected
void initGlobals (Dwoo_ITemplate $tpl)

Redefinition of:
Dwoo::initGlobals()
re-initializes the globals array before each template run
is_cached (line 372)
  • access: public
void is_cached ( $tpl, [ $cacheId = null], [ $compileId = null])
  • $tpl
  • $cacheId
  • $compileId
makeTemplate (line 433)
  • access: protected
void makeTemplate ( $file,  $cacheId,  $compileId)
  • $file
  • $cacheId
  • $compileId
register_block (line 255)
  • access: public
void register_block ( $name,  $callback, [ $cacheable = true], [ $cache_attrs = null])
  • $name
  • $callback
  • $cacheable
  • $cache_attrs
register_function (line 242)
  • access: public
void register_function ( $name,  $callback, [ $cacheable = true], [ $cache_attrs = null])
  • $name
  • $callback
  • $cacheable
  • $cache_attrs
register_modifier (line 268)
  • access: public
void register_modifier ( $name,  $callback)
  • $name
  • $callback
register_object (line 332)
void register_object ( $object,  $object_impl, [ $allowed = array()], [ $smarty_args = false], [ $block_methods = array()])
  • $object
  • $object_impl
  • $allowed
  • $smarty_args
  • $block_methods
register_outputfilter (line 315)
  • access: public
void register_outputfilter ( $callback)
  • $callback
register_postfilter (line 298)
  • access: public
void register_postfilter ( $callback)
  • $callback
register_prefilter (line 281)
  • access: public
void register_prefilter ( $callback)
  • $callback
template_exists (line 367)
  • access: public
void template_exists ( $filename)
  • $filename
trigger_error (line 421)
  • access: public
void trigger_error ( $error_msg, [ $error_type = E_USER_WARNING])
  • $error_msg
  • $error_type
unregister_block (line 263)
  • access: public
void unregister_block ( $name)
  • $name
unregister_function (line 250)
  • access: public
void unregister_function ( $name)
  • $name
unregister_modifier (line 276)
  • access: public
void unregister_modifier ( $name)
  • $name
unregister_object (line 353)
void unregister_object ( $object)
  • $object
unregister_outputfilter (line 323)
  • access: public
void unregister_outputfilter ( $callback)
  • $callback
unregister_postfilter (line 306)
  • access: public
void unregister_postfilter ( $callback)
  • $callback
unregister_prefilter (line 289)
  • access: public
void unregister_prefilter ( $callback)
  • $callback
__call (line 72)
  • access: public
void __call ( $m,  $a)
  • $m
  • $a
__get (line 58)
  • access: public
void __get ( $p)
  • $p
__set (line 40)
  • access: public
void __set ( $p,  $v)
  • $p
  • $v

Inherited Methods

Inherited From Dwoo

Dwoo::__construct()
Dwoo::addFilter()
Dwoo::addPlugin()
Dwoo::addResource()
Dwoo::addStack()
Dwoo::arrayMap()
Dwoo::assignInScope()
Dwoo::classCall()
Dwoo::clearCache()
Dwoo::delStack()
Dwoo::findBlock()
Dwoo::forceScope()
Dwoo::get()
Dwoo::getCacheDir()
Dwoo::getCacheTime()
Dwoo::getCharset()
Dwoo::getCompileDir()
Dwoo::getCustomPlugins()
Dwoo::getData()
Dwoo::getDefaultCompilerFactory()
Dwoo::getLoader()
Dwoo::getObjectPlugin()
Dwoo::getParentBlock()
Dwoo::getPluginProxy()
Dwoo::getScope()
Dwoo::getSecurityPolicy()
Dwoo::getTemplate()
Dwoo::initGlobals()
Dwoo::initRuntimeVars()
Dwoo::isArray()
Dwoo::isCached()
Dwoo::output()
Dwoo::readParentVar()
Dwoo::readVar()
Dwoo::readVarInto()
Dwoo::removeFilter()
Dwoo::removePlugin()
Dwoo::removeResource()
Dwoo::setCacheDir()
Dwoo::setCacheTime()
Dwoo::setCharset()
Dwoo::setCompileDir()
Dwoo::setDefaultCompilerFactory()
Dwoo::setLoader()
Dwoo::setPluginProxy()
Dwoo::setScope()
Dwoo::setSecurityPolicy()
Dwoo::templateFactory()
Dwoo::triggerError()
Dwoo::__clone()
Class Constants

Documentation generated on Sun, 03 Aug 2008 15:12:17 +0200 by phpDocumentor 1.4.0