X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdevel%2Fkint%2Fkint%2Fparsers%2Fobjects%2Fsmarty.php;fp=web%2Fmodules%2Fcontrib%2Fdevel%2Fkint%2Fkint%2Fparsers%2Fobjects%2Fsmarty.php;h=52b07505efca228e768692317ba23420ed6c3d12;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/devel/kint/kint/parsers/objects/smarty.php b/web/modules/contrib/devel/kint/kint/parsers/objects/smarty.php new file mode 100644 index 000000000..52b07505e --- /dev/null +++ b/web/modules/contrib/devel/kint/kint/parsers/objects/smarty.php @@ -0,0 +1,35 @@ +name = 'object Smarty (v' . substr( Smarty::SMARTY_VERSION, 7 ) . ')'; # trim 'Smarty-' + + $assigned = $globalAssigns = array(); + foreach ( $variable->tpl_vars as $name => $var ) { + $assigned[ $name ] = $var->value; + } + foreach ( Smarty::$global_tpl_vars as $name => $var ) { + if ( $name === 'SCRIPT_NAME' ) continue; + + $globalAssigns[ $name ] = $var->value; + } + + return array( + 'Assigned' => $assigned, + 'Assigned globally' => $globalAssigns, + 'Configuration' => array( + 'Compiled files stored in' => isset($variable->compile_dir) + ? $variable->compile_dir + : $variable->getCompileDir(), + ) + ); + + } +}