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.

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

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 ( $_tpl, [ $data = array()], [ $_compiler = null], [ $_output = false])
void get_registered_object ( $name)
void get_template_vars ([ $name = null])
void initGlobals ()
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 triggerError ( $message, [ $level = E_USER_NOTICE])
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 156)
  • access: protected
mixed $cache_dir = 'cache' (line 138)
  • access: public
mixed $cache_lifetime = 3600 (line 147)
  • access: public
mixed $caching = 0 (line 146)
  • 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 85)
  • access: protected
mixed $compiler = null (line 157)
  • access: protected
mixed $compiler_class = null (line 150)
  • access: public
mixed $compiler_file = null (line 149)
  • access: public
mixed $compile_check = true (line 144)
  • access: public
mixed $compile_dir = 'templates_c' (line 136)
  • access: public
mixed $compile_id = null (line 148)
  • access: public
mixed $config_dir = 'configs' (line 137)
  • access: public
mixed $dataProvider (line 154)
  • access: protected
mixed $force_compile = false (line 145)
  • access: public
mixed $left_delimiter = '{' (line 142)
  • access: public
mixed $php_handling = SMARTY_PHP_PASSTHRU (line 119)
  • access: public
mixed $plugins_dir = array() (line 139)
  • access: public
mixed $right_delimiter = '}' (line 143)
  • access: public
mixed $secure_dir = array() (line 118)
  • access: public
mixed $security = false (line 116)
  • 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 120)
  • access: public
mixed $show_compat_errors = false (line 153)
  • access: public
mixed $template_dir = 'templates' (line 135)
  • access: public
mixed $trusted_dir = array() (line 117)
  • access: public
mixed $_filters = array('pre'=>array(),'post'=>array(),'output'=>array()) (line 155)
  • 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 159)
  • 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 395)
  • access: public
void append_by_ref ( $var,  &$value, [ $merge = false])
  • $var
  • &$value
  • $merge
assign_by_ref (line 400)
  • access: public
void assign_by_ref ( $name,  &$val)
  • $name
  • &$val
clear_all_assign (line 410)
  • access: public
void clear_all_assign ()
clear_all_cache (line 429)
  • access: public
void clear_all_cache ([ $olderThan = 0])
  • $olderThan
clear_assign (line 405)
  • access: public
void clear_assign ( $var)
  • $var
clear_cache (line 434)
  • access: public
void clear_cache ( $template, [ $cacheId = null], [ $compileId = null], [ $olderThan = 0])
  • $template
  • $cacheId
  • $compileId
  • $olderThan
display (line 167)
  • access: public
void display ( $filename, [ $cacheId = null], [ $compileId = null])
  • $filename
  • $cacheId
  • $compileId
fetch (line 172)
  • access: public
void fetch ( $filename, [ $cacheId = null], [ $compileId = null], [ $display = false])
  • $filename
  • $cacheId
  • $compileId
  • $display
get (line 243)
  • access: public
void get ( $_tpl, [ $data = array()], [ $_compiler = null], [ $_output = false])
  • $_tpl
  • $data
  • $_compiler
  • $_output

Redefinition of:
Dwoo::get()
returns the given template rendered using the provided data and optional compiler
get_registered_object (line 367)
void get_registered_object ( $name)
  • $name
get_template_vars (line 415)
  • access: public
void get_template_vars ([ $name = null])
  • $name
initGlobals (line 444)
  • access: protected
void initGlobals ()

Redefinition of:
Dwoo::initGlobals()
re-initializes the globals array before each template run
is_cached (line 390)
  • access: public
void is_cached ( $tpl, [ $cacheId = null], [ $compileId = null])
  • $tpl
  • $cacheId
  • $compileId
makeTemplate (line 451)
  • access: protected
void makeTemplate ( $file,  $cacheId,  $compileId)
  • $file
  • $cacheId
  • $compileId
register_block (line 264)
  • access: public
void register_block ( $name,  $callback, [ $cacheable = true], [ $cache_attrs = null])
  • $name
  • $callback
  • $cacheable
  • $cache_attrs
register_function (line 251)
  • access: public
void register_function ( $name,  $callback, [ $cacheable = true], [ $cache_attrs = null])
  • $name
  • $callback
  • $cacheable
  • $cache_attrs
register_modifier (line 277)
  • access: public
void register_modifier ( $name,  $callback)
  • $name
  • $callback
register_object (line 341)
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 324)
  • access: public
void register_outputfilter ( $callback)
  • $callback
register_postfilter (line 307)
  • access: public
void register_postfilter ( $callback)
  • $callback
register_prefilter (line 290)
  • access: public
void register_prefilter ( $callback)
  • $callback
template_exists (line 376)
  • access: public
void template_exists ( $filename)
  • $filename
triggerError (line 470)
  • access: public
void triggerError ( $message, [ $level = E_USER_NOTICE])
  • $message
  • $level

Redefinition of:
Dwoo::triggerError()
[util function] triggers a dwoo error
trigger_error (line 439)
  • access: public
void trigger_error ( $error_msg, [ $error_type = E_USER_WARNING])
  • $error_msg
  • $error_type
unregister_block (line 272)
  • access: public
void unregister_block ( $name)
  • $name
unregister_function (line 259)
  • access: public
void unregister_function ( $name)
  • $name
unregister_modifier (line 285)
  • access: public
void unregister_modifier ( $name)
  • $name
unregister_object (line 362)
void unregister_object ( $object)
  • $object
unregister_outputfilter (line 332)
  • access: public
void unregister_outputfilter ( $callback)
  • $callback
unregister_postfilter (line 315)
  • access: public
void unregister_postfilter ( $callback)
  • $callback
unregister_prefilter (line 298)
  • access: public
void unregister_prefilter ( $callback)
  • $callback
__call (line 71)
  • access: public
void __call ( $m,  $a)
  • $m
  • $a

Redefinition of:
Dwoo::__call()
Redirects all calls to unexisting to plugin proxy.
__get (line 57)
  • access: public
void __get ( $p)
  • $p
__set (line 35)
  • 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::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::__call()
Dwoo::__clone()
Class Constants

Documentation generated on Sat, 18 Jul 2009 21:04:35 +0200 by phpDocumentor 1.4.0